-
Notifications
You must be signed in to change notification settings - Fork 6
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
Custom CSS does not apply to kernel.org main page feeds, regardless of bypass CSP preference #84
Comments
Hello, Sorry for the very late response, I haven't had a lot of time to work on the extension in a while. tl;dr: it should now work on v3.32 for https://www.kernel.org/feeds/all.atom.xml but not for https://www.kernel.org/feeds/kdist.xml Some details: the extension works in two passes:
To do the first part, we mostly look at the The problem is that a lot of websites are serving their feeds with the (incorrect) I don't want to treat any xml document as a feed and mess with the headers if we're not sure this is actually a feed. I don't want the extension to be intrusive and step on documents that has noting to do with rss. So a But in the second pass it will be recognized as a feed if the content of the document matches. So it will be displayed, the custom css will be injected, but firefox will refuse to apply its rules if the unpatch CSP header disallows it. In v3.32 I added a check in the first pass to handle So for the custom css not to work, a page will now have to:
e.g.:
If we find lots of feeds that do all three I might add more rules to try to detect feeds based on the url (like matching Ideally websites would just send the correct content-type. Hope this helps, thanks for reporting. |
Feeds used in the main Linux kernel site do not use the custom CSS with the extension (examples: https://www.kernel.org/feeds/all.atom.xml and https://www.kernel.org/feeds/kdist.xml), regardless of the bypass CSP setting. I double checked with #69 and lore.kernel.org still works.
Custom CSS to test with
The text was updated successfully, but these errors were encountered: