Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: RegisteredContentScript.workers property to inject WorkerScope(s) #538

Open
hackademix opened this issue Feb 1, 2024 · 0 comments
Labels
enhancement Enhancement or change to an existing feature neutral: firefox Not opposed or supportive from Firefox neutral: safari Not opposed or supportive from Safari proposal Proposal for a change or new feature

Comments

@hackademix
Copy link

hackademix commented Feb 1, 2024

(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:

  • workers Optional
    boolean, default false: if true, all the Worker, SharedWorker and ServiceWorker scopes which are associated to the browsing contexts matched this RegisteredContentScript filters will be injected as well.
@hackademix hackademix changed the title Proposal: RegisteredContentScript.workers property to injecti WorkerScope(s) Proposal: RegisteredContentScript.workers property to inject WorkerScope(s) Feb 1, 2024
@xeenon xeenon added proposal Proposal for a change or new feature enhancement Enhancement or change to an existing feature and removed needs-triage labels Feb 29, 2024
@Rob--W Rob--W added neutral: safari Not opposed or supportive from Safari neutral: firefox Not opposed or supportive from Firefox labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or change to an existing feature neutral: firefox Not opposed or supportive from Firefox neutral: safari Not opposed or supportive from Safari proposal Proposal for a change or new feature
Projects
None yet
Development

No branches or pull requests

3 participants