Disables streaming in the extension when length is undefined.

This commit is contained in:
Yury Delendik 2014-10-01 14:16:50 -05:00
parent 29eb147d42
commit c0e933682a

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