New issue
Advanced search Search tips

Issue 889082 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

debugger is confused by history.replaceState

Reported by feli...@gmail.com, Sep 25

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
Visit this page with the debugger open:

<!doctype html>
<script>
  history.replaceState({}, '', '/asdf');
  debugger;
</script>
<script>
  debugger;
</script>

What is the expected behavior?

What went wrong?
At the first 'debugger' statement, the script pane shows the right location.

At the second 'debugger' statement, the script pane is confused. It shows an isolated 'VMxxx' script, and the stack trace shows the wrong line number: it's the line number in the original file, not in the isolated script.

This makes a number of related things not work, eg, breakpoints.

Did this work before? N/A 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: OS X 10.13.6
Flash Version:
 
Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment