-
Notifications
You must be signed in to change notification settings - Fork 84
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
uBlock error when using a command line switch in Chromium #296
Comments
uBO makes use of Canvas, you disabled Canvas reading functionality browser-wide, so it fails to read img data and browser spews Uncaught DomException |
Not just uBO, I think that error also existed before using Canvas for the toolbar icon, the extension API itself makes use of the Canvas API for the same purpose if I am not mistaken (just try with any other extension). |
Yes, happens with uMatrix and other VPN extensions too, where chromium fails to set icon. |
I can't find any such issue on Chromium issue tracker -- so I am not sure anymore where I saw this before. |
No, that one is not related to the extension API. I did add the code to catch and handle the exception, and now the extension API framework throws, I think this is what I must have seen before -- so even fixing uBO's code, there are still errors thrown from within the extension API framwork:
|
I get the same errors with other extensions. I will fix uBO handling the exception, but there will still be exceptions in the extension API framework, and these need to be reported to Chromium devs. |
Yes, they will remain as chromium also access for setting extension icon via Canvas API when an extension is enabled after being disabled |
This is where I saw this before: gorhill/uBlock#1509. |
Did you implement the fix suggested in gorhill/uBlock#1509 (comment) ? |
I disagree the workaround is sane -- it requires to hard-code the image data in the extension code. |
I am getting the exact same error without using "--disable-reading-from-canvas" in ungoogled-chromium 70.0.3538.77 in Linux. It appears both in uBO 1.17.2 and uMatrix 1.3.14. I don't know if this is related but searching |
@uBlock-user yes, I saw that. Just wanted to mention that it happens even without the option reported by the OP. |
because you have two other flags enabled, disable them and it won't happen. |
Prerequisites
Description
When I start Chromium with the command Line switch "--disable-reading-from-canvas" I get an error.
js/vapi-background.js:705 (anonymous function)
let imgData = ctx.getImageData(0, 0, w, h);
A specific URL where the issue occurs
[A specific URL is MANDATORY for issue happening on a web page, even if it happens "everywhere" ]
Steps to Reproduce
background.html
page for uBlock Origin to see the errors.Expected behavior:
Expected behavior is that uBlock Origin should not give an error on load.
Actual behavior:
An error on uBlock Origin load
Your environment
The text was updated successfully, but these errors were encountered: