-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
enhancementEnhancement or change to an existing featureEnhancement or change to an existing featureneutral: firefoxNot opposed or supportive from FirefoxNot opposed or supportive from FirefoxproposalProposal for a change or new featureProposal for a change or new featuresupportive: chromeSupportive from ChromeSupportive from Chromesupportive: safariSupportive from SafariSupportive from Safari
Description
(As discussed in #103)
Main world scripts should be able to modify JavaScript-accessible object (e.g. DOM prototypes or built-in functions) in a way that is transparent and cannot be subverted by page scripts., e.g. to modify or intercept the behavior of built-in objects for additional security, privacy and/or anti-fingerprinting reasons.
This requires them to be injected and running before site scripts in any scope, including WorkerScope(s) (workers, shared workers and service workers), otherwise these scope can be use to circumvent the main browsing context modifications.
Therefore, in addition to the RegisteredContentScript properties already specified, we propose to add:
workersOptional
boolean, defaultfalse: iftrue, all theWorker,SharedWorkerandServiceWorkerscopes which are associated to the browsing contexts matched thisRegisteredContentScriptfilters will be injected as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementEnhancement or change to an existing featureEnhancement or change to an existing featureneutral: firefoxNot opposed or supportive from FirefoxNot opposed or supportive from FirefoxproposalProposal for a change or new featureProposal for a change or new featuresupportive: chromeSupportive from ChromeSupportive from Chromesupportive: safariSupportive from SafariSupportive from Safari