[Pkg-javascript-commits] [pdf.js] 163/204: Fix disableAutoFetch regression in the generic viewer

David Prévot taffit at moszumanska.debian.org
Sat Oct 25 18:50:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit cb3e5903cb18355c370fd7fa16adfe99a001b51f
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed Oct 1 17:41:56 2014 +0200

    Fix disableAutoFetch regression in the generic viewer
    
    After PR 5263, setting `disableAutoFetch = true` in the generic viewer no longer works correctly, since the entire file loads even with `disableStream = true`.
---
 src/core/worker.js | 2 +-
 src/display/api.js | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/worker.js b/src/core/worker.js
index 30effa8..d4deb0c 100644
--- a/src/core/worker.js
+++ b/src/core/worker.js
@@ -138,7 +138,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
           }
         },
 
-        onProgressiveData: PDFJS.disableStream ? null :
+        onProgressiveData: source.disableStream ? null :
             function onProgressiveData(chunk) {
           if (!pdfManager) {
             cachedChunks.push(chunk);
diff --git a/src/display/api.js b/src/display/api.js
index e400e1d..b204722 100644
--- a/src/display/api.js
+++ b/src/display/api.js
@@ -1076,6 +1076,7 @@ var WorkerTransport = (function WorkerTransportClosure() {
 
     fetchDocument: function WorkerTransport_fetchDocument(source) {
       source.disableAutoFetch = PDFJS.disableAutoFetch;
+      source.disableStream = PDFJS.disableStream;
       source.chunkedViewerLoading = !!this.pdfDataRangeTransport;
       this.messageHandler.send('GetDocRequest', {
         source: source,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list