Open siebenmann opened 5 years ago
This seems pretty definitely a (website/Firefox) CSP issue. Toggling security.csp.enable
on and off in a testing Firefox setup (and reloading the page) reliably switches gestures between working and not working.
I believe this behavior is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1267027.
I recall reading about similar problems with Greasemonkey and CSP. I think Tampermonkey alters the CSP header, but Greasemonkey does not. I think Greasemonkey's is the safer approach, so web extensions will remain broken until Mozilla fixes the page CSP applies to extensions issue.
Belatedly (oops): I read the bug report and it sort of seems like Foxygestures ought not to be affected by the specific report, unless I misunderstand how Foxygestures works (or the bug report). The bug report seemed to be about things directly injected into the page and people seemed to think that content scripts should still be fine, which I believe is all that Foxygestures uses to actually do things. FG injects markup into the page, but I believe it still does things even if that markup is suppressed or altered?
(That's been my experience in some situations where FG's gesture trails and 'Gesture:' report are suppressed, at least; nothing shows, but the gesture action still happens.)
It still seems to be a FF problem. The reason I think this is because if you open the devtools and look at Sources tab, you can see contentScripts on non-CSP sites. Thats FG and uBlock content scripts showing up here:
However, on the page you provided the Sources tab is empty. No FG or uBlock content scripts.
Sorry, my lack of clarity: I agree that this is absolutely a Firefox problem. I just don't know if it's that specific problem, or if one should file another bug with Firefox in the hopes that it does some good.
After crawling the various related bugs, I found https://bugzilla.mozilla.org/show_bug.cgi?id=1366467 which was marked duplicate of 1267027 above. It seems to imply that 1267027 is a meta bug for all the CSP related addon issues. If you feel strongly enough that those aren't the applicable bugs here, I suppose you could log a new issue and worst case it gets closed as a dupe.
Also fails on https://support.mozilla.org (but works on https://mozilla.org/)
I've stumbled over a website that Foxygestures doesn't work on: https://dotfiles.tnetconsulting.net/home.html (and associated pages). It's possible that this failure isn't from anything that Foxygestures is doing and is instead at root a Firefox issue, because when I load the page the browser console reports
Content Security Policy: Couldn’t process unknown directive ‘plugin-types’
(and no other errors).Environment: Firefox on Fedora Linux, Firefox version 63.0.3, Foxygestures 1.2.4. I'd be happy to run beta or test versions of Foxygestures to test fixes or generate debugging messages.
The exact response HTTP headers I get in Firefox are: