Skip to content

Commit

Permalink
Merge pull request #5145 from Snuffleupagus/revert-5005-2
Browse files Browse the repository at this point in the history
Revert commit 9a41659 (PR 5005) for breaking the loading of certain PDF files in the Firefox addon when range requests are active
  • Loading branch information
yurydelendik committed Aug 7, 2014
2 parents c6c4583 + 643ad37 commit cbdaf85
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/core/chunked_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,8 @@ var ChunkedStream = (function ChunkedStreamClosure() {
if (pos >= this.end) {
return -1;
}
var byte = this.bytes[pos];
if (byte === 0) {
// |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;
this.ensureByte(pos);
return this.bytes[this.pos++];
},

getUint16: function ChunkedStream_getUint16() {
Expand Down

0 comments on commit cbdaf85

Please sign in to comment.