Closed Bug 1601171 Opened 4 years ago Closed 4 years ago

[jsdbg2] All handlers for a Debugger hook function should be guaranteed to run, even if an early one returns termination

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: loganfsmyth, Assigned: loganfsmyth)

Details

Attachments

(4 files, 2 obsolete files)

onLeaveFrame has a bunch of custom logic to handle the case of onPop handlers from multiple Debugger instances returning completion values (by taking the most recent non-undefined completion), but all of the other hook implementations bail out as soon as they see the first non-undefined completion and don't run later hooks.

Type: task → defect
Priority: -- → P2
Assignee: nobody → loganfsmyth
Status: NEW → ASSIGNED
Attachment #9117642 - Attachment is obsolete: true
Attachment #9117643 - Attachment description: Bug 1601171 - Part 4: Do not use previous onPop completion to update the value passed to the next hook. r=jimb! → Bug 1601171 - Part 2: Do not use previous onPop completion to update the value passed to the next hook. r=jimb!
Attachment #9117641 - Attachment is obsolete: true
Attachment #9117644 - Attachment description: Bug 1601171 - Part 5: Run all debugger hooks, even if some throw uncaught exceptions. r=jimb! → Bug 1601171 - Part 3: Run all debugger hooks, even if some throw uncaught exceptions. r=jimb!
Attachment #9117645 - Attachment description: Bug 1601171 - Part 6: Run all debugger hooks, even if some return resumption values. r=jimb! → Bug 1601171 - Part 4: Run all debugger hooks, even if some return resumption values. r=jimb!
Pushed by loganfsmyth@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2918a19232e8
Part 1: Pull the frame's generator from the frame directly. r=jimb
https://hg.mozilla.org/integration/autoland/rev/1e7f23870af3
Part 2: Do not use previous onPop completion to update the value passed to the next hook. r=jimb
https://hg.mozilla.org/integration/autoland/rev/a9b20281ee58
Part 3: Run all debugger hooks, even if some throw uncaught exceptions. r=jimb
https://hg.mozilla.org/integration/autoland/rev/59ecb73e49fc
Part 4: Run all debugger hooks, even if some return resumption values. r=jimb
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: