Merge pull request #5373 from yurydelendik/issue5372

Disables streaming in the extension when length is undefined.
This commit is contained in:
Yury Delendik 2014-10-01 15:34:37 -05:00
commit 09b62e8317

View File

@ -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);