+141
−0
Loading
Bug 1837185 - Correct loader for extension imports in WebExtension descriptor +tests r=rpl,devtools-reviewers,jdescottes, a=dmeehan The WebExtensionDescriptorActor loaded extension modules with the dedicated devtools loader, which returns a different instance than the real module in the browser. Besides the code not being designed to be loaded twice in the same browser instance, this has the following devtools-protocol-observable consequences: - Uninitialized AddonManager -> Unable to detect addon updates/uninstalls. - Detached ExtensionParent -> Unable to observe the actual extension, including not seeing extension state such as warnings. Differential Revision: https://phabricator.services.mozilla.com/D180292