Merge pull request #5145 from Snuffleupagus/revert-5005-2
Revert commit 9a41659 (PR 5005) for breaking the loading of certain PDF files in the Firefox addon when range requests are active
This commit is contained in:
commit
cbdaf85130
@ -155,15 +155,8 @@ var ChunkedStream = (function ChunkedStreamClosure() {
|
|||||||
if (pos >= this.end) {
|
if (pos >= this.end) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
var byte = this.bytes[pos];
|
this.ensureByte(pos);
|
||||||
if (byte === 0) {
|
return this.bytes[this.pos++];
|
||||||
// |byte| might be zero, because the corresponding chunk has not been
|
|
||||||
// loaded yet. In this case, this.ensureByte(pos) will throw an
|
|
||||||
// exception and nothing is returned.
|
|
||||||
this.ensureByte(pos);
|
|
||||||
}
|
|
||||||
this.pos++;
|
|
||||||
return byte;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getUint16: function ChunkedStream_getUint16() {
|
getUint16: function ChunkedStream_getUint16() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user