We start to talk to PDF.js too soon, even before it has properly initialized itself. Earlier this did not happen, because PDF could not be tested with extension, only from bookmarklet, and the bookmarklet was always deployed after the PDF has loaded.
But now that we have the experimental plugin build (for #152), it's possible to use extension with PDF, so we can navigate to a PDF document with extension switched on, which results in this problem.
Probably easy to fix; just need to find a detect PDF.js initialization is ready.
该提问来源于开源项目:hypothesis/h