asciidoctor-browser-extension icon indicating copy to clipboard operation
asciidoctor-browser-extension copied to clipboard

On Firefox, pages viewed directly from GitHub are not render properly

Open twilight-sparkle-irl opened this issue 5 years ago • 4 comments

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)

twilight-sparkle-irl avatar Jun 10 '19 14:06 twilight-sparkle-irl

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:

gist2 gist1

If you want you can vote for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1267027

ggrossetie avatar Jun 10 '19 14:06 ggrossetie

@no-boot-device could you please confirm that you are using Firefox ?

ggrossetie avatar Jul 28 '19 11:07 ggrossetie

Yes. Sorry for being late

twilight-sparkle-irl avatar Dec 07 '19 21:12 twilight-sparkle-irl

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.

ggrossetie avatar Dec 09 '19 07:12 ggrossetie