Open Bug 1607393 Opened 6 years ago Updated 3 months ago

[jsdbg2] onGarbageCollection hook does not use AutoDebuggerJobQueueInterruption or EnterDebuggeeNoExecute

Categories

(Core :: JavaScript: Debugger API, defect, P3)

defect

Tracking

()

People

(Reporter: jimb, Unassigned)

References

(Blocks 1 open bug)

Details

Nothing in the code to call a Debugger's onGarbageCollection hook creates an AutoDebuggerJobQueueInterruption or an EnterDebuggeeNoExecute.

I don't see why it should be necessary to permit debuggee execution from this hook, or why it should be a problem to forbid it. Certainly omitting ADJQI and its accompanying runJobs call means that any asynchronous execution from the hook will be interleaved with content microtasks, which is asking for trouble.

Priority: -- → P3
Severity: normal → S3

Moving bugs to Debugger API component. Use castle-terms-potato to filter out.

Component: JavaScript Engine → JavaScript: Debugger API
You need to log in before you can comment on or make changes to this bug.