From e36b04e1ffdcbe5f9355281abd508b443e0b1252 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 29 Jan 2016 11:43:19 -0600 Subject: [PATCH] Fix 'Ready' message sequence for Firefox ext disabled worker. --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index 96e577426..7dfd50e31 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -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);