Merge pull request #3231 from yurydelendik/safari-checkheader

Rejects loading when data is not available for checkHeader
This commit is contained in:
Brendan Dahl 2013-05-09 09:49:45 -07:00
commit 220c827e9e

View File

@ -145,12 +145,12 @@ var WorkerMessageHandler = {
loadDocumentPromise.reject(e);
};
pdfManager.ensureModel('checkHeader', []).then(function() {
pdfManager.ensureModel('parseStartXRef', []).then(function() {
pdfManager.ensureModel('parse', [recoveryMode]).then(
parseSuccess, parseFailure);
});
});
pdfManager.ensureModel('checkHeader', []).then(function() {
pdfManager.ensureModel('parseStartXRef', []).then(function() {
pdfManager.ensureModel('parse', [recoveryMode]).then(
parseSuccess, parseFailure);
}, parseFailure);
}, parseFailure);
return loadDocumentPromise;
}