Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly validate the response status for non-HTTP fetch requests (P…
…R 8768 follow-up) It seems that the status check, for non-HTTP loads, causes the default viewer to *refuse* to open local PDF files. ***STR:*** 1. Make sure that fetch support is enabled in the browser. In Firefox Nightly, set `dom.streams.enabled = true` and `javascript.options.streams = true` in `about:config`. 2. Open https://mozilla.github.io/pdf.js/web/viewer.html. 3. Click on the "Open file" button, and open a new PDF file. ***ER:*** A new PDF file should open in the viewer. ***AR:*** The PDF file fails to open, with an error message of the following format: `Message: Unexpected server response (200) while retrieving PDF "blob:https://mozilla.github.io/a4fc455f-bc05-45b5-b6aa-2ecff3cb45ce".`
- Loading branch information