Skip to content
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

Disable ftp support in Chrome 59+, add file chooser at file #9595

Merged
merged 2 commits into from
Jun 15, 2018

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Mar 21, 2018

Fixes #9411
Work-around for #8926

Test case for ftp: Visit ftp://ftp.sagu.edu/ and try to open a PDF file that appears there.

Rob--W added 2 commits March 21, 2018 15:44
The extension cannot easily fetch data from ftp:-resources any more
in Chrome 59+. So don't intercept such URLs.
Test case to exercise the different encodings:
1. Create a file "some file#@%M<br>%25 .pdf"
2. Build the extension with `gulp chromium` and load it in Chrome.
3. Go to `chrome://extensions/` and ensure that the
   "Allow access to file URLs" is disabled.
4. Try to open the file from step 1 in Chrome (maybe reload once).
5. PDF.js should be showing a file chooser button.
6. Click on that button and select a different file.

   Test: Check that a confirmation dialog pops up that warns about
   a different file name. Cancel the dialog.

7. Click on the button again and select the original file.

   Test: Check that the file opens as expected.
@Rob--W Rob--W changed the title Disable ftp support in Chrome 59+, add file chooser at ftp Disable ftp support in Chrome 59+, add file chooser at file Mar 22, 2018
@brendandahl brendandahl merged commit 7892122 into mozilla:master Jun 15, 2018
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Disable ftp support in Chrome 59+, add file chooser at file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants