Fix 'Ready' message sequence for Firefox ext disabled worker.

This commit is contained in:
Yury Delendik 2016-01-29 11:43:19 -06:00
parent 5d797e1a85
commit e36b04e1ff

View File

@ -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);