Closed Bug 1375813 Opened 7 years ago Closed 5 years ago

Devtools should not detach on refresh

Categories

(DevTools :: Debugger, defect, P3)

54 Branch
defect

Tracking

(firefox57 fix-optional)

RESOLVED FIXED
Tracking Status
firefox57 --- fix-optional

People

(Reporter: lee, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170608105825

Steps to reproduce:

When the website being developed has faulty code which results in an infinite loop firefox freezes up (not unreasonably). 
Then, I was using the debugger in devtools to find the faulty code. Once identified I fix the original source code and then hit refresh in the browser.


Actual results:

The debugger detaches from the webpage before the refresh takes place. This results in the infinite loop resuming and the refresh never happens. At this point I am forced to terminate FF and open fresh.


Expected results:

Debugger should not detach before the page is unloaded, meaning execution does not resume.

Alternatively, add a button in the debugger which causes script execution to stop permanently until the page is reloaded.
Component: Untriaged → Developer Tools: Debugger
Priority: -- → P3
Thanks for reporting Lee. This could be a difficult fix, which involves platform. I'm labeling it a P3 for now.
Product: Firefox → DevTools

Hmm, this should work Lee. Could you try again and let us know if you still see a problem?

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.