MS Edge crashes with segmentation fault error after calling chrome.sidePanel.open
MS Edge consistently crashes for us when calling chrome.sidepanel.open from our extension shortly after installation. After restarting Edge, we never see that behavior again. We've been able to reproduce this crash in both MacOS and Windows.
I am working on trying to create a minimal reproduction
@grahamlangford thanks for opening this! Dealing with exactly the same issue in Microsoft Edge.
A minimal reproduction can be found here: https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/demos/sidebar-per-tab-sidebar-with-action-url#crash-on-reload-issue
How to reproduce:
- Load the demo extension as unpacked extension
- Open a new tab with https://example.com/
- Activate the action button
- Reload extension
- Return to the https://example.com/ tab
- Activate the action button
- Microsoft Edge crashes
Here is a very minimal reproduction of MS Edge crashing. Seems like it is the same issue as yours @carlosjeurissen (Used your repo, thank you!). I've included a reproduction video below.
Repo URL: https://github.com/carlosjeurissen/webext-tech-demo-extensions/tree/main/demos/sidebar-per-tab-sidebar-with-action-url#crash-on-reload-issue
Steps:
- Open MS Edge, ensure only one tab is opened
- Go to
edge://extensions - Ensure Developer Mode is on in the extensions tab
- Load unpacked extension from webext-tech-demo-extensions/demos/sidebar-per-tab-sidebar-with-action-url/src
- Open a new tab is MS Edge
- In the new tab, click the extension icon in MS Edge (Top Right) to open the side panel
- Once the side panel is opened, close the new tab that was just opened
- In the extensions tab, reload the extension
- Open the side panel for the extension by going to the three dots in the top right, click on extensions, then click on the extension icon in the popover menu
Video of reproduction steps https://www.loom.com/share/8bbf0a1790ae46e9946758afadd998a5?sid=34fadbea-bafa-4a6f-b17a-c9a138233d4d
Second Reproduction
- Open MS Edge, ensure only one tab is opened
- Go to
edge://extensions - Ensure Developer Mode is on in the extensions tab
- Load unpacked extension from webext-tech-demo-extensions/demos/sidebar-per-tab-sidebar-with-action-url/src
- Open a new tab is MS Edge
- In the new tab, click the extension icon in MS Edge (Top Right) to open the side panel (do not close this tab)
- In the extensions tab, reload the extension
- Open the side panel for the extension by going to the three dots in the top right, click on extensions, then click on the extension icon in the popover menu
https://www.loom.com/share/a9e8d1323ef34fbf9d4b098bc84c6c09?sid=2d381480-dea9-4bfd-a69f-35e8b6d410c4
Hi @grahamlangford, @carlosjeurissen, @Agrejus, thank you for reporting this issue. We have escalated it to our engineering team for further investigation. Once we have an update, we will write back to you.
We appreciate your patience and understanding.
@ManikanthMSFT do you have any updates?
Hello @grahamlangford I am Rahul from the Microsoft Edge Extensions Developer Support team.
Apologies for the delayed response, the issue has been now resolved in the Edge 139 release.
If you encounter any further problems or have additional questions, please don’t hesitate to reach out—we’re here to help.