1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #4545 from Rob--W/crx-api-enhancements

Use new Chromium APIs for FTP and redirects
This commit is contained in:
Yury Delendik 2014-04-02 09:40:13 -05:00
commit bd11111465
5 changed files with 156 additions and 8 deletions

View file

@ -1880,9 +1880,10 @@ function webViewerLoad(evt) {
// PDFView.setTitleUsingUrl(file);
// return;
// }
// if (isFTPFile) {
// // Stream not found, and it's loaded from FTP. Reload the page, because
// // it is not possible to get resources over ftp using XMLHttpRequest.
// if (isFTPFile && !response.extensionSupportsFTP) {
// // Stream not found, and it's loaded from FTP.
// // When the browser does not support loading ftp resources over
// // XMLHttpRequest, just reload the page.
// // NOTE: This will not lead to an infinite redirect loop, because
// // if the file exists, then the streamsPrivate API will capture the
// // stream and send back the response. If the stream does not exist, then