Bug 1529762 - PageStyle child actors should only instantiate for web pages. r=Felipe
☠☠ backed out by 101887de9762 ☠ ☠
authorMike Conley <mconley@mozilla.com>
Thu, 07 Mar 2019 19:05:45 +0000
changeset 520885 459979fd1d25ff7e86870df25f6a93266eaaff03
parent 520884 9d5e6a41565dd171c74b0200b6149f8d27fe61ac
child 520886 f49189976e12e2f01ff80a0f8fb2389a3136aecb
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1529762
milestone67.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 1529762 - PageStyle child actors should only instantiate for web pages. r=Felipe This avoids instantiating them for internal pages, like about:home. Differential Revision: https://phabricator.services.mozilla.com/D22520
browser/base/content/test/performance/browser_startup_content.js
browser/components/BrowserGlue.jsm
--- a/browser/base/content/test/performance/browser_startup_content.js
+++ b/browser/base/content/test/performance/browser_startup_content.js
@@ -41,17 +41,16 @@ const whitelist = {
     "resource:///modules/sessionstore/ContentSessionStore.jsm",
     "resource://gre/modules/sessionstore/SessionHistory.jsm",
 
     // Browser front-end
     "resource:///actors/AboutReaderChild.jsm",
     "resource:///actors/BrowserTabChild.jsm",
     "resource:///modules/ContentMetaHandler.jsm",
     "resource:///actors/LinkHandlerChild.jsm",
-    "resource:///actors/PageStyleChild.jsm",
     "resource:///actors/SearchTelemetryChild.jsm",
     "resource://gre/modules/ActorChild.jsm",
     "resource://gre/modules/ActorManagerChild.jsm",
     "resource://gre/modules/E10SUtils.jsm",
     "resource://gre/modules/Readerable.jsm",
     "resource://gre/modules/WebProgressChild.jsm",
 
     // Telemetry
--- a/browser/components/BrowserGlue.jsm
+++ b/browser/components/BrowserGlue.jsm
@@ -210,16 +210,19 @@ let ACTORS = {
       group: "browsers",
       events: {
         "pageshow": {},
       },
       messages: [
         "PageStyle:Switch",
         "PageStyle:Disable",
       ],
+      // Only matching web pages, as opposed to internal about:, chrome: or
+      // resource: pages. See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns
+      matches: ["*://*/*"],
     },
   },
 
   Plugin: {
     child: {
       module: "resource:///actors/PluginChild.jsm",
       events: {
         "PluginBindingAttached": {capture: true, wantUntrusted: true},