-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gestures no longer work in PDFs #284
Comments
It seems like it's up to Firefox. The screenshot tool of Firefox also does not work anymore. |
This was a recent change from what I see. as in, the last few weeks. |
The problem already exists with version 60.0 |
To give an update: |
Did some regression checks, https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=c8514e653b71479ba22a307f58f79f563ed80e9d&tochange=07ab807639ee42a407a9bdb0d374206c0f17678d this is where it broke. |
looking through the #1456485 ticket, seems Gesturefy needs to change (like Screenshots) for this to be fixed now |
It looks like this behavior won't be changed in the near future according to this bug. |
A rather dodgy workaround: Part 1
This extension sends pdf urls directly to Google Doc's PDF viewer, and so preserves content script injection. This approach fails with readers based on Extension Pages (like Literal PDF Reader). Disclaimer: I have no idea about the security of this approach! A rather dodgy workaround: Part 2
{
"description": "PDF Redirector",
"exampleUrl": "https://arxiv.org/pdf/1307.7118.pdf",
"exampleResult": "https://tnds0.codesandbox.io/?pdf=https://arxiv.org/pdf/1307.7118.pdf",
"error": null,
"includePattern": "(^https?://.*\\.pdf$)",
"excludePattern": "",
"patternDesc": "",
"redirectUrl": "https://tnds0.codesandbox.io/?pdf=$1",
"patternType": "R",
"processMatches": "noProcessing",
"disabled": false,
"appliesTo": [
"main_frame"
]
}
Needless to say, this could be EVEN WORSE from a security standpoint. Next steps |
It seems unlikely that Firefox/Mozilla will ever allow extensions to run inside the pdf reader. Therefore I'm closing this issue. |
Describe your matter in detail
Mouse gestures no long work on pdfs (pdf.js) in Firefox nightly.
Install/Use Firefox nightly.
Visit; https://news.ycombinator.com/item?id=16797947
Click on the pdf link at the top
Wait for it to load, try to use a gesture to move back. No work.
Edit by Itchiii:
Firefox Version: 61.0a1 (Nightly)
The text was updated successfully, but these errors were encountered: