[Pkg-javascript-commits] [pdf.js] 164/204: Disables streaming in the extension when length is undefined.
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 c0e933682ab70293e174331b7d3355a9b91a185b
Author: Yury Delendik <ydelendik at mozilla.com>
Date: Wed Oct 1 14:16:50 2014 -0500
Disables streaming in the extension when length is undefined.
---
extensions/firefox/content/PdfStreamConverter.jsm | 1 +
1 file changed, 1 insertion(+)
diff --git a/extensions/firefox/content/PdfStreamConverter.jsm b/extensions/firefox/content/PdfStreamConverter.jsm
index 0c28a6b..99974ea 100644
--- a/extensions/firefox/content/PdfStreamConverter.jsm
+++ b/extensions/firefox/content/PdfStreamConverter.jsm
@@ -897,6 +897,7 @@ PdfStreamConverter.prototype = {
(!isPDFBugEnabled ||
hash.toLowerCase().indexOf('disablerange=true') < 0);
streamRequest = contentEncoding === 'identity' &&
+ aRequest.contentLength >= 0 &&
!getBoolPref(PREF_PREFIX + '.disableStream', false) &&
(!isPDFBugEnabled ||
hash.toLowerCase().indexOf('disablestream=true') < 0);
--
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