-
Notifications
You must be signed in to change notification settings - Fork 22
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
The content script is injected twice (editor open, click browser action) #3510
Comments
Additionally: While testing I also sporadically saw the same behavior even without the editor open, which is a little concerning. |
Moving out of 1.7.0 because it mainly impacts the Page Editor
That's more concerning because it can lead to messenger problems, e.g. possibly #3560 |
My guess is that
This is how I've been tracking duplicate injections in Refined GitHub: https://github.com/refined-github/refined-github/blob/a7c9dd3a0fe6f6ce22b16c8c4f31c7beefdac4e1/source/features/index.tsx#L124-L141 |
That's a good theory. If the two scripts run in different VMs, IIRC the symbol would not be equivalent |
With the different VMs you have to be careful that it's not referring to multiple frames on the page |
I think I'll close this ticked after doing this:
But in the meantime my other PR fixes the issue in my last comment: Screen.Recording.mov |
This bug caused the behavior described in #3132 (comment)
Most of the content script already has duplicate avoidance, but that doesn't seem enough for the QuickBar.
Steps to reproduce
Demo
You can see the
VM_number
prepended to the content script logs, which suggests another contentScript.js was injected.Screen.Recording.15.mov
Causes
ensureContentScript
directlyensureContentScript
Maybe next
ready
/installed
test isn't workingensureContentScript
so that it doesn't attempt to inject via this code pathThe text was updated successfully, but these errors were encountered: