Came across something unexpected today. There is a certain website which plays a video. However, when chrome devtools is opened it does two unexpected things.
- It somehow detects that the chrome devtools has been opened without the use of a "debugger" statement, and still detects that it has been opened even if the devtools is not docked (i.e. its opened as a separate window)
- It clears the console log (which I can prevent) but the code source section of this is recorded as "(unknown)" in the console log instead of a source:line# format (i.e. javafile.js:30, vm11:22, etc.) so there is no clickable link to jump to the relevant code.
I've done searches on how to achieve this functionality and haven't succeeded so I am not sure how it is being done. Similar questions have been solved by either dealing with the "debugger" statement (in this case its not used), or by undocking the devtools, neither of which have helped me. I also haven't found what causes an unknown code source so tracking down the code doing this has been more difficult.
The website that I am experiencing this on is vexmovies.org, and a link to an example page which has this behavior can be found here: http://vexmovies.org/chicken-run
chrome://inspect
(then Pages, then clickpause
) so the site code won't run.