-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
DevTools Lost Syntax Highlighting for JavaScript #7372
Comments
Thanks for the report, @qingxiang-jia 😄 I'm going to close this as a duplicate report of #5618 This issue is fixed in Developer and Nightly versions of the product (NOTE: you have to enable remote debugging under brave://settings/privacy). I created a pull request just right now to uplift this to our Beta branch (1.2, shipping January 6th) since there have been a recent bump in requests: |
Hi @bsclifton , in fact, this issue is not solved in the latest Developer edition. I will check if it's fixed in the nightly. Note that this is not exactly the same as the linked bug because this one deals with JavaScript, the other one deals with TypeScript.
|
Hi @bsclifton , I just checked the latest nightly build, this bug is not fixed. I think we should reopen this issue.
|
@qingxiang-jia did you go to brave://settings/privacy and enable |
Hi @bsclifton , thanks for pointing out that. Yes, I indeed forgot to turn on remove debugging. After that, the syntax highlighting works as expected. |
@qingxiang-jia perfect! Thanks for confirming 😄 It's definitely not an obvious thing to do cc: @rebron in case we could provide an easier way to enable remote debugging (ex: show it in dev tools) |
So the default behavior of Brave will have code highlighting disabled, and we will have to turn on Remote Debugging now? :( |
I have the same feeling. Also, after some googling I am not sure what "remote debugging" really is. Chromium doesn't seem to have it. |
I thought that was for debugging android web apps. I use chrome to debug my android app that has a webview. |
OK. Thanks! I didn't find it in Chrome's setting. Maybe I went to a wrong place. Good to know! |
Chrome doesn't offer this setting because it because it's enabled by default (it's a setting we created at Brave). Here's the raw Chromium source, so you can see what's happening: Basically, if remote debugging (in Brave) is disabled, it won't allow execution of Here's the Chromium annotation for this call, which describes the call that
Even if you're debugging local files, it's going to make a call to fetch "Chromium DevTools front-end files from the cloud" and will send cookies, which has privacy violating implications (which is why it's disabled). We can definitely look at making this safer- for example adding a proxy in-between, which strips out user identifying information. Hope this makes sense; I know it's an inconvenience |
Thank you for the detailed explanation. I never realized we are sending cookie by using the dev tools until your comment! Now I understand the privacy implication I think it's great that we have the option to switch off it and I feel more important to keep using Brave. Yes, I think adding something in the red square would be a good idea. |
Thanks for the detailed explanation |
Issue created to proxy these calls and enable the setting by default: |
Description
The dev tool ("Sources" tab) lost syntax highlighting for JavaScript.
Steps to Reproduce
.js
file.Actual result:
No highlighting for JavaScript.
Expected result:
Has highlighting for JavaScript just like Chrome or Firefox.
Reproduces how often:
Always happens after 12:00PM (PST) today (12/12/2019).
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: