-
Notifications
You must be signed in to change notification settings - Fork 10k
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 v17 CanvasPixelArray issue #4974
Comments
Shall be fixed by adding web/compatibility.js to the scripts. See #4420. Closing as answered. |
I already have that, i'm using the default viewer.html from the 'web' directory. Still didn't work though on chrome 17. |
Then the polyfill to properly hook into CanvasPixelArray prototype shall be fixed |
The problem is that the polyfill has no access. the code thinks CanvasPixelArray is window scoped, but it is not. if there would be a createImageData(ctx) function, we could optimize/polyfill there. |
i guess it would be possible to polyfill it differently, ill put a PR together. |
Fixes CanvasPixelArray set polyfill (#4974)
* 'master' of https://github.com/mozilla/pdf.js: (41 commits) Do not run cleanup while printing is ongoing. Fixes CanvasPixelArray set polyfill for chrome < 21 (mozilla#4974) Added paintJpegXObject Added paintSolidColorImageMask Optimization of save/restore usage Combine re element into constructPath Restructured EvaluatorPreprocessor_read to be more natural. Removing unnecessary includes from text selection example Refactoring PDFFindController in the text layer builder Convert the text layer builder to a class Refactoring text layer builder Use null instead of [] for ops with no args. Implement text normalization for page content and queries Fix code style issues in pdf_find_controller.js and build strings more efficiently Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533) Fixes SVG transforms on restore Misc UI improvements for the SVG Viewer SVG Viewer example demo Factor out repeated Ref key string generation code. Avoid allocating return object in EvaluatorPreprocessor_read(). ...
On Chrome 17 i am getting the following issue:
It isn't happening in the latest version of Chrome, just wondering if there is a simple fix that doesn't involve upgrading chrome as that isn't really an option in this particular case.
The text was updated successfully, but these errors were encountered: