asciidoctor-browser-extension
asciidoctor-browser-extension copied to clipboard
On Firefox, pages viewed directly from GitHub are not render properly
Examples of non-working githubusercontent files: 1 and 2
Yes, I know github renders them inline. I want to use this extension to view them because I prefer the styling and such (and either way this is a bug)
Hello @no-boot-device, I guess that you are using Firefox right ? This is actually a bug in Firefox as described in the README: https://github.com/asciidoctor/asciidoctor-browser-extension#firefox
On Firefox, pages viewed directly from GitHub may not render properly. This is result of a Firefox bug carrying over the Content Security Policies (CSP). The restrictive CSP sent by GitHub are applied to the content inserted by the WebExtension.
Here's how it looks like with Chrome:
If you want you can vote for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1267027
@no-boot-device could you please confirm that you are using Firefox ?
Yes. Sorry for being late
Thanks for your input. As mention in my comment, there's nothing we can do to workaround this bug in Firefox. The only thing we can do is vote for the issue in the Firefox bug tracker and hope it will be prioritized and fixed.