Bug 1790100 - Only initialize CookieBanner window actors for http/s scheme. r=timhuang

Depends on D157676

Differential Revision: https://phabricator.services.mozilla.com/D158078
This commit is contained in:
Paul Zuehlcke 2022-09-28 17:06:40 +00:00
parent 06a19eb62b
commit 177b8481f7

View File

@ -213,7 +213,9 @@ let JSWINDOWACTORS = {
DOMContentLoaded: {},
},
},
// We only handle cookie banners for HTTP/S scheme. Avoid initializing
// actors for other schemes.
matches: ["https://*/*", "http://*/*"],
allFrames: true,
enablePreference: "cookiebanners.bannerClicking.enabled",
},