Only inject hook.js script for Firefox. Use ExecutionWorld.MAIN for Chrome#1232
Merged
jerelmiller merged 6 commits intomainfrom Feb 26, 2024
Merged
Only inject hook.js script for Firefox. Use ExecutionWorld.MAIN for Chrome#1232jerelmiller merged 6 commits intomainfrom
hook.js script for Firefox. Use ExecutionWorld.MAIN for Chrome#1232jerelmiller merged 6 commits intomainfrom
Conversation
Member
|
This looks good to me (tested locally in Chrome and Firefox), but I'm slightly concerned: didn't you see the extension break with the current Firefox code, in Firefox? Could you reproduce that? |
Member
Author
|
Talked in our 1:1. Posting the answer here for transparency: I feel a bit more confident now in this change for a couple reasons:
|
Member
Author
|
We are going to wait to merge this for a few days after 4.7.0 goes out to ensure we catch any bugs or new issues that arise from that release. |
Member
Author
|
Putting in draft for now to avoid accidental merge until we are ready. |
Member
Author
|
So far we've seen no reports that the latest update caused any more issues. I'll go ahead and merge this and get a release out tomorrow. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1162
This is a revival of #1164 with some tweaks. Now that we are running Chrome on Manifest v3, we are able to use
hook.jsas a content script usingExecutionWorld.MAIN. Unfortunately this is not yet supported in Firefox, so we have to rely on script injection for this to work. The script injection used in #1164 is now added back, but only when building for Firefox.