Closed Thorin-Oakenpants closed 4 years ago
note to self: https://bugzilla.mozilla.org/show_bug.cgi?id=1522083 is about to land
Firefox Nightly 79, no extensions, practically a vanilla profile
http://*/*
and https://*/*
to user matchesdom.targetBlankNoOpener.enabled
= falseFirst link
malicious.html
Cleared window.opener @ https://mathiasbynens.github.io/rel-noopener/malicious.html
#hax
reload the test page
Second link
https://mathiasbynens.be/demo/opener
Cleared window.opener @ https://mathiasbynens.be/demo/opener
#hax
Either I'm doing something wrong, or the script doesn't work. This is the same result I got 4 months ago
Anyway, the first two tests fail and tell me I am hacked (and I reset to the original page for each test)
I tested it just now in nightly and the latest beta and can confirm that the script doesn't run at document-start with GM. It does work 100% with Firemonkey!
Then I tested the script again in my main profile with GM and it sometimes works but only when I load a page for the very first time in a fresh container. When I refresh the page the script runs too late but when I shift-refresh it sometimes run correctly at document-start. So the way that GM injects scripts which are supposed to run at document-start is just not reliable enough!
When I said in https://github.com/ghacksuserjs/ghacks-user.js/issues/860#issuecomment-566132112 that
I tested GM (v4.9) and FM and both are able to run scripts at document start.
I apparently didn't notice that it doesn't reliably run at document-start in all circumstances (with GM).
ps:
- had to manually add
http://*/*
andhttps://*/*
to user matches
why? the script already has the @match
keys for both http+https
had to manually add
http://*/*
andhttps://*/*
to user matches
I got no console warning, so it wasn't being applied. So I took a stab in the dark and added those manually under settings and then it was applied
edit:
that it doesn't reliably run at document-start
Hmmm. This is why I chose VM way back when quantum came out. I have three GM scripts and they're all doc start. I switched to GM back in #860 ... going to go back to VM now
I added a warning to the wiki page
I only have one script now: windows.name
- I thought the JonDoNym site tested that? But now I'm confused
Edit: Ahh - yes, it was JonDoNymn - and that new version seems fucked in VM (not the one int he link but the new one) - I've rolled back to v1.0.1
a clean new ticket so I don't have to wade through anything
from #860
See if I can troubleshoot what in my setup causes this, as it may be something common