mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Improved FTP support for Chromium extension
This commit is contained in:
parent
7d5bf83ce8
commit
d04f81b964
5 changed files with 88 additions and 6 deletions
|
@ -1876,9 +1876,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue