Closed Bug 832231 Opened 13 years ago Closed 13 years ago

After a reload, breakpoints require multiple resumes to allow execution to continue

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 23

People

(Reporter: vporof, Assigned: past)

Details

Attachments

(1 file, 2 obsolete files)

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: nobody → past
Priority: -- → P2
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) — — Splinter Review
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.
Attached patch Test WIP (obsolete) — — Splinter Review
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.
Attached patch Patch v2 — — Splinter Review
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)
Comment on attachment 744137 [details] [diff] [review] Patch v2 Review of attachment 744137 [details] [diff] [review]: ----------------------------------------------------------------- Loving it!
Attachment #744137 - Flags: review?(vporof) → review+
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: