You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We may implement this addon to intercept all PDF pages and redirect to a local PDF container. However, other addons will not work in the container page, since the container's URL start with moz-extension://* (verified using arxiv-utils + ScrollAnywhere). Another solution is to redirect to a PDF container hosted as a static site (maybe a html page in this repo deployed by GitHub pages).
Although I believe using an external static site will work, it will be better if it is possible to somehow allow other addons' content_scripts to run in our local PDF container (with URL format: moz-extension://*).
I may investigate the possibility of addon interoperability sometime in the future. If it isn't possible, we can simply fallback to the original plan (i.e., using a static site).
The text was updated successfully, but these errors were encountered:
It would be great if this is possible ! IMO, a static site seems to be the only option so far, but it would be nice to have interop on web extensions. Probably several developments would be necessary for this to be achieved, looking at the linked bug to Support content handlers in WebExtensions, where Rob mentions:
This design was chosen to minimize the impact of code execution vulnerabilities in content handlers, and to support the ability to allow other extensions to run code in the page (e.g. accessibility, translations, ...).
And this would solve pdf content-scripts.
My worry with a static website is that someone would have to foot the bill for all the serving, and pdf.js is not small (15 Mb with maps, 7.3 Mb without maps).
As mentioned by @cipri-tom in j3soon/arxiv-utils#2 (2020), the PDF container hack used in arxiv-utils may be used as a general workaround for the Firefox issue: content_scripts won't load with pdf.js tabs (2018).
We may implement this addon to intercept all PDF pages and redirect to a local PDF container. However, other addons will not work in the container page, since the container's URL start with
moz-extension://*
(verified using arxiv-utils + ScrollAnywhere). Another solution is to redirect to a PDF container hosted as a static site (maybe a html page in this repo deployed by GitHub pages).Although I believe using an external static site will work, it will be better if it is possible to somehow allow other addons'
content_scripts
to run in our local PDF container (with URL format:moz-extension://*
).I may investigate the possibility of addon interoperability sometime in the future. If it isn't possible, we can simply fallback to the original plan (i.e., using a static site).
The text was updated successfully, but these errors were encountered: