Extensions on pdfjs pages

Since Firefox 60 it seems extensions are not being injected on the embedded pdfjs viewer pages?

Can anyone confirm this issue?

Is this a wanted feature documented anywhere?

I don’t know about any documentation of if/when this changed, but I can confirm that it is not possible to inject styles into the inline PDF viewer. I just tried that a few days ago in FF60.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1456485, so essentially it’s not an issue, it’s a feature for normal extensions.

best I could find…

I’m not sure why but bugzilla won’t let me access the internal bug linked in that issue. I suppose it says user extension are restricted on some pages…

Are you aware of any documentation on this? Maybe in doing so they added some manifest persmission to be granted for specific pages?

1 Like

What is the current situation on this?
Do I need to add some permission for injecting content scripts to pdf-viewer pages - or is it just not possible anymore to use extensions in ff pdf viewer?
Is there a way to inject content scripts into pages in reader mode?

Current situation regarding content scripts in PDF and Reader mode:

PDF: (resolved as invalid - “This is intentional.” :frowning: )

Reader mode: (P3 normal)

PLEASE VOTE for these bugs!

PS: one more bug related to this is content scripts on mozilla.org pages:
https://bugzilla.mozilla.org/show_bug.cgi?id=1310082
(it’s invalid as well now but at least they mentions how you can override it in about:config page by clearing extensions.webextensions.restrictedDomains value.

1 Like