New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 714094 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug



Sign in to add a comment

JavaScript hotwap silently fails

Reported by petton.n...@gmail.com, Apr 21 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Steps to reproduce the problem:
1. open an html file that loads the attached index.js script
2. Open the DevTools
3. change the function `foo` like the following:

function foo() {
  bar();
}

function bar() {
  window.alert('bar');
}

4. click on the window

What is the expected behavior?
`bar` gets evaluated, an alert with "bar" is displayed

What went wrong?
The definition of `foo` is never updated.

Did this work before? No 

Chrome version: 58.0.3029.81 (64-bit)  Channel: stable
OS Version: Fedora 25 64bit
Flash Version: 

Sniffing the devtools and looking at the WebSocket, it looks like the hotswap fails silently, here's the result of the `Debugger.setScriptSource` call:

{"id":154,"result":{"callFrames":[],"stackChanged":false}}

There's apparently no exception.
 
index.js
62 bytes View Download
index.html
79 bytes View Download
Labels: -Pri-2 Needs-Triage-M58 Needs-Bisect Prestable-58.0.3029.81 Pri-1

Comment 3 by caseq@chromium.org, Apr 23 2017

Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Labels: -Needs-Bisect M-58 OS-Mac OS-Windows
Able to reproduce the issue on windows 7, Ubuntu 14.04 and Mac 10.12.4 using chrome version 58.0.3029.81 and canary 60.0.3078.0 with the below steps

1. opened an html file that loads the attached index.js script
2. Open the DevTools
3. change the function `foo` with above mentioned code
4.Observed again foo displayed when clicked on window

This is observed from old M40 versions.In M50 versions showing the error in console as bar is not defined.

Thanks,

Can we have the latest update on this issue?
Status: Fixed (was: Assigned)
Looks to be fixed in ToT.

Sign in to add a comment