Bug 1483600 - Notify "tab-content-frameloader-created" in GeckoView content script. r=jchen
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 16 Aug 2018 20:50:36 +0000
changeset 487125 cc1ffa88e12c75cf047757753589594c41d76ac5
parent 487124 07ce0e4ae08d0cd49d8be2c613121b5c84364422
child 487126 13bc5c55e633f755d19cfbf58f6b05baec166a68
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1483600
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483600 - Notify "tab-content-frameloader-created" in GeckoView content script. r=jchen Differential Revision: https://phabricator.services.mozilla.com/D3546
mobile/android/chrome/geckoview/GeckoViewContent.js
--- a/mobile/android/chrome/geckoview/GeckoViewContent.js
+++ b/mobile/android/chrome/geckoview/GeckoViewContent.js
@@ -29,16 +29,19 @@ class GeckoViewContent extends GeckoView
     this.messageManager.addMessageListener("GeckoView:RestoreState",
                                            this);
     this.messageManager.addMessageListener("GeckoView:DOMFullscreenEntered",
                                            this);
     this.messageManager.addMessageListener("GeckoView:DOMFullscreenExited",
                                            this);
     this.messageManager.addMessageListener("GeckoView:ZoomToInput",
                                            this);
+
+    // Notify WebExtension process script that this tab is ready for extension content to load.
+    Services.obs.notifyObservers(this.messageManager, "tab-content-frameloader-created");
   }
 
   onEnable() {
     debug `onEnable`;
 
     addEventListener("DOMTitleChanged", this, false);
     addEventListener("DOMWindowFocus", this, false);
     addEventListener("DOMWindowClose", this, false);