forked from mozilla/pdf.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CRX] Add file chooser as fallback (fixes mozilla#9411)
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.
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters