[Pkg-javascript-commits] [pdf.js] 175/414: Fix 'Ready' message sequence for Firefox ext disabled worker.

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit e36b04e1ffdcbe5f9355281abd508b443e0b1252
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Fri Jan 29 11:43:19 2016 -0600

    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 96e5774..7dfd50e 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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list