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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2019-03-08 20:22:19 +00:00
parent 71896d2c30
commit 2b9b7b6358
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,6 @@ const whitelist = {
"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",

View File

@ -215,6 +215,9 @@ let ACTORS = {
"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: ["*://*/*"],
},
},