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

specify static main world script in manifest.json #1538

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

marcustyphoon
Copy link
Collaborator

Description

Yep: this works.

Rather than creating and appending a script element to run the main world script in the correct world, this specifies it as a static content script with the "world": "MAIN" property.

My assumption is that content scripts get injected in order and are executed synchronously...? So there, uh, should be no race conditions with this? Probably?

Requires Firefox 128, which was released today, so we obviously don't want to do this now.

Testing steps

@marcustyphoon
Copy link
Collaborator Author

marcustyphoon commented Jul 18, 2024

I could find no documentation that this is the right version, but sure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant