Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome default console context

Lately when opening the Google Chrome developer console, the context has been wrong.

I load a page, press Ctrl + Shift + J and get this: http://i.imgur.com/2eTJgD0.png

It changes extensions sometimes but it should be 'top'.

I can change the context manually each time but this is getting kind of annoying to do.

like image 539
user2984236 Avatar asked Jun 23 '16 21:06

user2984236


People also ask

How do I reset my browser console?

Use the short cut Ctrl + L to clear the console. Use the clear log button on the top left corner of the chrome dev tools console to clear the console. On MacOS you can use Command + K button.

What is $$ in Chrome console?

$ is an alias for document. querySelector . In the same vein there is $$ which is an alias for document. querySelectorAll . It is defined in the Command line (console) api.


1 Answers

This issue was reported and fixed on the Chromium issue tracker. The revision #396058 has not made it into Chrome stable yet, but you can see that it is fixed in Chrome Canary. It can take 10 weeks for the change to reach the stable version of Chrome, and it has been about 1 month so far.

enter image description here

Update (August 15th 2016)

The issue has regressed again and the fix hadn't even reached Chrome stable yet. Another issue has since been logged here, so we are awaiting a Canary fix, and then a longer wait for Chrome stable. It's very frustrating.

Update (August 24th 2016)

This seems to be mostly fixed in 54.0.2837.0 (Canary), but I get problems with blank frames on some sites, such as BBC News, Yahoo and MSN. Hopefully this will get looked at (I added a comment on the bug thread), otherwise I'll try and look into a fix myself.

Update (November 25th 2016)

It's been a while since I last looked at this, but the remaining issues I mentioned in my last update don't exist in Canary 57.0.2931.0, but do in Stable 54.0.2840.98. The issue hasn't been marked as a resolve so don't really know when the fixes took place to track, but I'm sure it wont be long now.

like image 70
Gideon Pyzer Avatar answered Oct 23 '22 05:10

Gideon Pyzer