-
Notifications
You must be signed in to change notification settings - Fork 168
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
Extension in a default-src 'self' CSP environment causes page load to fail #1519
Comments
That is curious - a CSP blocking JS execution should to my knowledge just not execute that JS (and issue a warning) - but never crassh the whole page. I'll investigate. |
Note: this only seems to happen in Firefox, not in Chrome. |
Irritatingly, if I build the extension locally, it neither crashes Firefox nor Chrome. |
While I can't find a way to really prevent this, the same is happening with the Redux DevTools and the React DevTools. I can't really imagine that this has gone unnoticed for so long... maybe it's a regression in Firefox itself? As I already said, I would expect FF to just continue going after a warning, not crash the whole page 🤔 |
I had a chat with the maintainer of the Redux Devtools about this, this could be the way to go @jerelmiller |
Intended outcome:
Load a page with a CSP of
default-src 'self';
(in this case https://standardebooks.org/). The page is expected to load and render regardless of the CSP settings.Actual outcome:
Blank screen, and CSP errors in the console. This was originally reported at standardebooks/web#397.
How to reproduce the issue:
Visit https://standardebooks.org/, observe blank page, observe errors in the console.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: