Bug 1511943 - Follow-up: always notify WebExtensions framework about this browser, as it might get reused later; rs=me
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 18 Dec 2018 19:25:19 +1300
changeset 34017 16d14cf843e2cdbfc5352232372fb199f219c608
parent 34016 714714d80d62fdfee3fdab44314aeb7ac8614c01
child 34018 ffa33b998d6c6d54a0462ae60ee4189deaf4284b
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersme
bugs1511943
Bug 1511943 - Follow-up: always notify WebExtensions framework about this browser, as it might get reused later; rs=me
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();