MicrosoftEdge-Extensions: [Bug - Edge Browser] chrome.storage.managed API broken in Edge 128+
Describe the bug
The chrome.storage.managed API (to get policies) is currently broken in Edge Beta/Dev/Canary. This breaks my extension (Legacy Browser Support), and breaks all extensions using enterprise policies.
To Reproduce Steps to reproduce the behavior:
- Install any MV3 extension that uses a ServiceWorker and has the
storagepermission. I used Cornify in my testing. - In edge://extensions, open DevTools for the extension’s
ServiceWorker - Run this snippet in the console:
chrome.storage.managed.get('this_string_does_not_matter').then(() => console.log('policies work fine'));
Expected behavior The snippet prints “policies work fine” in the console.
Actual behavior
The snippet prints nothing to the console, because chrome.storage.managed.get() never completes.
Screenshots N/A
Desktop (please complete the following information):
- OS: Windows
- Browser: Edge Beta
- Version: 128.0.2739.9
Additional context Edge 127 and below work fine. I couldn’t repro this issue in Chromium, so it looks like a downstream regression. Assuming Edge uses the same release schedule as Chromium, Edge 128 reaches Stable next week.
Please help me route this bug to the Edge team for prioritization
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 49
Microsoft Edge stable v130.0.2849.56 is rolling out now and contains the fix for this issue.
Thank you for the reports and additional information. It is appreciated. We continue to investigate this issue and are treating it as a critical priority.
@ManikanthMSFT Please provide some update. We have had to advise customers to use Chrome until this is resolved. We would be more than happy to assist by creating accounts on our server so you can use our extension and recreate the issue.
This issue is impacting multiple extensions for consumers and enterprises. As @mkruger-msft mentioned, we have the root cause and we are fixing this at a priority. Thank you all for bringing this to our notice. 🙏
Hey @apurvabhansali, we are currently looking into the issue and will update you as soon as we have more information.
We appreciate your patience in the meantime.
I believe we have pinned down the change that caused this to break and are getting this reverted in the stable and beta channels for the next release. The exact schedule time of the release depends on a number of things, but it is scheduled for this week.
Same here from 130. This issue is extremely critical for us. We request an urgent fix.
Same here from 130, we need a solution ASAP!
Our extension is also stopped working because the managed storage api (which worked in Edge 129) is not working in Edge 130.0.2849.46
Hey @apurvabhansali, @montrosb, thank you for your patience as we work through this issue. Our team has reviewed the initial comments and is currently investigating further. We believe there may be an additional issue contributing to the symptoms you’re experiencing, which requires more time to thoroughly investigate and identify the changes.
We understand the inconvenience this may cause and appreciate your understanding as we work towards a resolution. We will keep you updated on our progress and notify you as soon as we have more information.
Thank you for your continued patience and support.
I have a 3rd customer with 100+ employees that are all affected by this 130.0.2859.46 release breaking our extension. We use the managed storage api so that enterprise customers can push the settings for our extension via group policy. I would suspect many extensions do this and are currently broken.
Any feedback on why this has broken? I think this will heat up with our customers next week.
Hi, this is happening in customer production environments where the browser just got updated to 130.0.2849.46. I performed the same update on my own laptop and am seeing the same issue.
If I remove my profile and sign-in using my profile again, then it works, but if I close the browser and reopen it, the api again fails.
Doing some more debugging and will update.
is this broken again in 136? Because 135 the Keepassxc extension works fine, but in 136 “storage.managed.get(xxx)” doesn’t return
Appreciate that, seems like I may have jumped the gun on that one. Now working properly 😃
Thanks! Please keep giving us daily updates if possible because our customers are asking us for the same.
We’re seeing critical failures as a result of this issue. We provide browser extensions to help schools safeguard children online. If managed storage doesn’t work, our software can’t operate correctly, meaning schools are unable to meet their legal obligations and duty of care. We really need a solution to this as soon as humanly possible.
Same here on 130 but works on 129 , and I’m in similar situation to @apurvabhansali on 131 in dev channel (my extension works for the first time on 131, but it isn’t working after restarting edge)
Even on 130, it works for the first time if I reinstall edge, but it stops working again after retarting edge
My extension is broken on Beta (130.0.2849.46), and working on Dev (131.0.2889.0).
I haven’t tested with a fresh profile like @apurvabhansali, though
we also never had any issues before 130.0.2849.46. Today, multiple customers using our extension are reporting it is not working. When we debug it is the same issue. When we do chrome.storage.managed.get we get an exception “Error: Extension Context Invalidated. at chrome-extension:// <extension file with line number>”
Please note that Chrome with same version is working FINE.
This is fixed in Stable 128. The fix for Beta and lower channels is being worked upon. Stable rollout has started, so do verify when you get the update and revert back. Thanks for the patience.