Merge pull request #6938 from yurydelendik/fix-ff-disableworker
Fix 'Ready' message sequence for Firefox ext disabled worker.
This commit is contained in:
commit
d7e5935f91
@ -414,9 +414,9 @@ PDFJS.getDocument = function getDocument(src,
|
||||
throw new Error('Loading aborted');
|
||||
}
|
||||
var messageHandler = new MessageHandler(docId, workerId, worker.port);
|
||||
messageHandler.send('Ready', null);
|
||||
var transport = new WorkerTransport(messageHandler, task, rangeTransport);
|
||||
task._transport = transport;
|
||||
messageHandler.send('Ready', null);
|
||||
});
|
||||
}).catch(task._capability.reject);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user