-
Notifications
You must be signed in to change notification settings - Fork 338
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
Widget Inspector values overlap label text in Brave browser #367
Comments
After a short investigation it seems to be caused by the browser's built in ad-blocker. It prevents third party fingerprinting on the canvas element used, which seems to break the UI. After disabling this, everything looks good. This issue can be closed I guess, thanks for the fast reaction 👍 |
Is this enabled by default? Which browser/version is it on which OS? It may be worth keeping this open to see if there's a way we can fix it, or at least warn users if they're using that browser. |
@DanTup I am on the latest version of MacOS using Brave Browser. Yes this is enabled by default. |
To keep our velocity high writing the devtools app we only have time to support Chrome. We should make that clearer when you start the app to avoid confusion. |
Do you mean in the web app? Should we open an issue for this? I had a quick look to see if there might be a quick fix for this, but it seems like Brave's anti-fingerprinting breaks quite a lot of stuff that uses canvas: So I doubt there's something simple we could tweak to avoid it. I guess a lot of legit use looks like fingerprinting. |
Open issue for warning users is here: #66. |
@lookfirst Brave deliberately makes itself look like Chrome (it used to identify itself, but stopped because it was another variable that could be used for fingerprinting), so I don't think it's possible to show a warning for Brace without all Chrome users seeing it. |
I don’t think the warning should be based on browser detection, rather than if canvas is available. There are plugins from chrome that prevents fingerprinting as well, which then will result broken UI again. |
Oh sorry, I may have misunderstood. I thought Brave was just messing with the rendering on the canvas. If it's just not available, then that might be easy to warn for. Can you run this code in the JS console and confirm if it outputs var elm = document.createElement('canvas'); !!(elm.getContext && elm.getContext('2d')); |
@DanTup That's close. Canvas fingerprinting is well described here https://browserleaks.com/canvas#how-does-it-work Because the way it works, the only way to prevent it is to disable I think you can tweak the check like this:
If fingerprinting is disabled, this will output true. |
Ok, though we don't use Does this return 0 for you? document.createElement('canvas').getContext('2d').measureText('Text that is quite long') |
@DanTup Yep, the output is
Good point. I've just ran observatory with the latest version of Brave, as I wasn't using it for a while and found out a bunch of new problems: It seems like the CSS and JS assets are not served with correct mime type from the observatory thus white screen appears as those files are not loaded at all. |
@Sh1d0w ok, then I think we can probably easily show a warning at the top of the Inspector page when As for the Observatory issue - I think that's best raised at dart-lang/sdk since it's a different app to the Dart DevTools (though I'm not sure what the support is intended to be for that). |
Opened by @Sh1d0w at Dart-Code/Dart-Code#1487
Just updated to the latest version 2.24 and this is how it looks when I launch the Dart DevTools:
The widget attributes seems to overflow the widget name and everything becomes unreadable.
The text was updated successfully, but these errors were encountered: