Open Bug 1607393 Opened 5 years ago Updated 1 year ago

[jsdbg2] onGarbageCollection hook does not use AutoDebuggerJobQueueInterruption or EnterDebuggeeNoExecute

Categories

(Core :: JavaScript Engine, 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
You need to log in before you can comment on or make changes to this bug.