[Injection] Does injection still work in Firefox (version > 126)?
I had injected Vimium C's scripts into pdf.js as explained in this wiki post, and could successfully use Vimium C's shortcuts for scrolling. However, I can no longer scroll with Vimium shortcuts in the extension.
I have three machines, all of which have the same issue. Has there been any changes to Firefox that prevent such an injection, or are there any config flags that need to be set to allow such an injection?
After reinstalling the extensions and clicking on Vimium C's icon, I see the following message:
Vimium C is not running on this page
Your browser does not run web extensions like Vimium / Vimium C on certain pages, usually for security reasons.
Unless your browser's developers change their policy, then unfortunately it is not possible to make Vimium / Vimium C (or any other web extension, for that matter) work on this page.
Configure more on the options page. Version 1.99.997.
I was able to fix the issue by adding the injector script to viewer.html as well.
However, when opening PDF files on ieee.org, I receive the following message and the PDF does not load:
Vimium C: injected partly into extension_name
Um the message means the viewer.html page was working in a "sandboxed" mode.
I'm not sure why it didn't load. Maybe you can try disabling the Prefer keeping URLs in the address bar unchanged option manually.
Um the message means the viewer.html page was working in a "sandboxed" mode.
I'm not sure why it didn't load. Maybe you can try disabling the
Prefer keeping URLs in the address bar unchangedoption manually.
Thank you for your response. The Firefox version I developed has no such option, and the URL starts with moz-extension://.
I will look into the sandbox mode and report my findings if I find a solution.