Bug 1511943 - Follow-up: always notify WebExtensions framework about this browser, as it might get reused later; rs=me a=jorgk DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 18 Dec 2018 19:25:19 +1300
changeset 33902 84b08b96490f60725939d82ba4177d908e358554
parent 33901 195a2aef72e1ab507c07ca93e703600b4b09c3b3
child 33903 8e53a70093a9727303bed0bba44eb795a981cc54
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersme, jorgk
bugs1511943
Bug 1511943 - Follow-up: always notify WebExtensions framework about this browser, as it might get reused later; rs=me a=jorgk DONTBUILD
mail/components/cloudfile/content/addAccountDialog.js
--- a/mail/components/cloudfile/content/addAccountDialog.js
+++ b/mail/components/cloudfile/content/addAccountDialog.js
@@ -178,19 +178,17 @@ var addAccountDialog = {
     frame.setAttribute("transparent", "true");
 
     this._settings.parentNode.replaceChild(frame, this._settings);
     this._settings = frame;
 
     this._settings.addEventListener("DOMContentLoaded", this);
     this._settings.addEventListener("overflow", this);
 
-    if (src.startsWith("moz-extension:")) {
-      ExtensionParent.apiManager.emit("extension-browser-inserted", frame);
-    }
+    ExtensionParent.apiManager.emit("extension-browser-inserted", frame);
 
     frame.setAttribute("src", src);
   },
 
   removeTitleMenuItem() {
     let menuitem = this._accountType.querySelector('menuitem[value=""]');
     if (menuitem)
       menuitem.remove();