Closed
Bug 832231
Opened 12 years ago
Closed 12 years ago
After a reload, breakpoints require multiple resumes to allow execution to continue
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: vporof, Assigned: past)
Details
Attachments
(1 file, 2 obsolete files)
12.63 KB,
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Open debugger on http://htmlpad.org/debugger/
2. Add a breakpoint on line 12
3. Click me
It takes 1 resume to get to line 13.
You can resume until the script finishes executing, or jump directly to 4.
4. Reload page
5. Click me
It takes 3 resumes to get to line 13.
The debugger frontend doesn't make any setBreakpoint requests after reload.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → past
Priority: -- → P2
Assignee | ||
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•12 years ago
|
||
The problem was that _addScript was being called by both onNewScript (each time a script appeared) and onSources (each time the frontend requested the available scripts), but it didn't keep tabs on how many times it tried to set a breakpoint on the associated script(s). On a tangentially-related issue, we didn't actually severe the breakpoint actor - script association when a page navigation occurred, which would lead to a small memory leak while the debugger was open.
This patch fixes both, passes all tests, but needs a new one.
Assignee | ||
Comment 2•12 years ago
|
||
This is a test that... works, even when it shouldn't (i.e. without the fix applied). I'll fix it tomorrow and qfold it back to the main patch.
Assignee | ||
Comment 3•12 years ago
|
||
The test now works as advertised.
Try run: https://tbpl.mozilla.org/?tree=Try&rev=07310018cd1a
Attachment #743645 -
Attachment is obsolete: true
Attachment #743820 -
Attachment is obsolete: true
Attachment #744137 -
Flags: review?(vporof)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 744137 [details] [diff] [review]
Patch v2
Review of attachment 744137 [details] [diff] [review]:
-----------------------------------------------------------------
Loving it!
Attachment #744137 -
Flags: review?(vporof) → review+
Assignee | ||
Updated•12 years ago
|
Whiteboard: [land-in-fx-team]
Comment 5•12 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•