Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome extension is broken #3167

Closed
yurivict opened this issue Apr 27, 2013 · 7 comments
Closed

Chrome extension is broken #3167

yurivict opened this issue Apr 27, 2013 · 7 comments

Comments

@yurivict
Copy link

This pdf:
http://harpers.org/wp-content/uploads/HarpersMagazine-1994-07-0001729.pdf
fails in chrome plugin, instead of showing the document it shows the gray screen, even no error message.

Version from 1 month ago showed the error message complaining about some attribute.

@yurivict
Copy link
Author

I take my previous comment back: extension is broken and it does it on all documents.

@gigaherz
Copy link
Contributor

You can EDIT the issue contents. You can also use <del>something</del> to strikethrough it.

In firefox, it shows: [20:52:34.994] Warning: JPX error: Unknown codestream code: ff55. Trying to recover

The chrome issue may be related to the #2719 PR?

@yurivict
Copy link
Author

No, I left the original message on purpose since I strongly suspect this is a failure too.
Agree, #2719 PR -- possible suspect for chrome.

@moderation
Copy link
Contributor

Chrome extension definitely broken and I get the same error on any PDF I try to load.

On http://nodejs.org/trademark-policy.pdf that Firefox Aurora successfully loads Chrome Canary on OS X returns:

Uncaught ReferenceError: NetworkManager is not defined
blob:http%3A//nodejs.org/e528e224-1603-4a13-8fbc-ea647bf26e26:35028

and for the Harpers PDF above

Uncaught ReferenceError: NetworkManager is not defined
blob:http%3A//harpers.org/4dd11a90-cf10-4fae-9ecc-fa7297f6835f:35028

I get the same results on Chrome Canary and Dev on both OS X and Xubuntu Linux.

@moderation
Copy link
Contributor

The error points to line 35028 of pdf.js inside the getPdfManager function specifically on the var networkManager ... line

function getPdfManager(data) {
// ...
    var networkManager = new NetworkManager(source.url, {
        httpHeaders: source.httpHeaders
    });

@moderation
Copy link
Contributor

Ah - this is a problem with node make extension - #3127. node make chrome fixes the problem and I'm good to go.

@yurydelendik
Copy link
Contributor

dup #3127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants