-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Code syntax highlighting in dev tools missing for sources tab? #7424
Comments
Thanks for the report, @tiagosiebler! This is something we've fixed in Developer and Nightly versions of Brave (1.3 and higher) with brave/brave-core#4044 In those versions, there is a new setting you can enabled |
Can this be moved up in prio, it's pretty painful for heavy dev tools usage... |
@bsclifton I don't think this is a duplicate of the remote debugging issue. I don't use remote debugging, just regular pages in the browser. |
@bsclifton I missed that your comment was focused on remote debugging. I can reproduce this on regular pages too. My screenshot is from the default "new tab" page in Brave vs Chrome. |
The remote codepath comes into play when sources are fetched (it might be grabbing the source maps). When remote debugging is disabled, those calls aren't allowed. When it is enabled, the call to fetch works and then syntax highlighting will work |
@bsclifton does this apply even for files that don't have/need a source map? E.g: |
@tiagosiebler I believe so; I'm not sure what is fetched. Would need to do a network trace to see. But you can test on Nightly if you wanted to verify (even if you just uninstall Nightly after testing): |
Ah my bad, that seems to have worked! Rushed the test a little too much... would still love to see if this can be moved up in prio. Thanks! |
Now I'm curious what it's doing... it may be running the source file through a web service? (to format? or help with highlighting?). Whatever the case, a remote call is made which is why we blocked it in the first place 😄 This is on track to be included in the Release channel build deploying January 6th 😄 |
Wait, will it start sending my protected source code to somewhere on the internet? Did I understand that correctly? |
Thank you for the Information, Brian :)
|
I'm not sure - that's why we've disabled it by default, because we haven't had time to audit this default behavior in Chromium |
Weird, would be really good to confirm. Would be kind of naughty to be sending source code around without opt-in or warning... browser-based source is one thing, but connected node apps |
Im experiencing this on Google Chrome. Anyone has an idea? |
I'm getting this on Google Chrome this morning too. Seems to have broken the ability to mouse over variables and objects too. |
@westy that bug is happening with Chrome - it's being tracked with https://bugs.chromium.org/p/chromium/issues/detail?id=1033022 @westy are you getting it even with Chrome 79.0.3945.117? Bug thread is showing it as fixed; it's also included in that release with this commit: We'll be releasing this Chromium update to Brave later today 😄 You can view all the new Chromium commits included here: |
Been using Firefox all day - it's come on nicely since I last used it in anger I must say. @bsclifton But yeah, just reloaded Chrome, it updated to 79.0.3945.117 and the highlighting is back. |
Still experiencing this. |
@alwaysonfire do you have We're going to look at proxying the calls made and enabling by default (see #7645)... but currently, it's something you need to manually enable |
I am currently using Google Chrome. I can't seem to find a Remote Debugging here. |
@alwaysonfire oh ok- Chrome doesn't have that; they make requests to Google servers without any settings changes Sounds like there might be a new bug in Chromium? You can create a new issue at https://crbug.com |
Description
Updated to the latest version today, and it seems all syntax highlighting in dev tools has disappeared. This worked in the previous version. This works in the latest version of Google Chrome.
Steps to Reproduce
Actual result:
No syntax highlights:
Expected result:
Syntax highlights, as still seen in chrome dev tools:
Reproduces how often:
Every time, easily reproduced.
Brave version (brave://version info)
Chrome version where this issue is not seen:
Version/Channel Information:
yes
not tested, same for below
Other Additional Information:
N/a, seen on new tab page too.
N/a
No
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: