Merge pull request #6938 from yurydelendik/fix-ff-disableworker

Fix 'Ready' message sequence for Firefox ext disabled worker.
This commit is contained in:
Brendan Dahl 2016-02-09 10:50:12 -08:00
commit d7e5935f91

View File

@ -414,9 +414,9 @@ PDFJS.getDocument = function getDocument(src,
throw new Error('Loading aborted'); throw new Error('Loading aborted');
} }
var messageHandler = new MessageHandler(docId, workerId, worker.port); var messageHandler = new MessageHandler(docId, workerId, worker.port);
messageHandler.send('Ready', null);
var transport = new WorkerTransport(messageHandler, task, rangeTransport); var transport = new WorkerTransport(messageHandler, task, rangeTransport);
task._transport = transport; task._transport = transport;
messageHandler.send('Ready', null);
}); });
}).catch(task._capability.reject); }).catch(task._capability.reject);