Closed Bug 1772084 Opened 2 years ago Closed 1 year ago

Ensure WorkerThreadPrimaryRunnable will not run any events after the cycle collector is destroyed.

Categories

(Core :: DOM: Workers, task)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jstutte, Unassigned)

References

Details

Attachments

(1 obsolete file)

In bug 1769878 we've seen that WorkerThreadPrimaryRunnable calls ClearMainEventQueue after the CC is destroyed. ClearMainEventQueue potentially does another round of NS_ProcessPendingEvents. If any assumed to be CC'ed object has not yet been destroyed and is referenced by some event such that it gets released during this round, the CC will crash.

We want to avoid that we do any events processing after we destroyed our cycle collector.

See Also: → 1769878
Assignee: nobody → jstutte
Status: NEW → ASSIGNED

I am not sure I will be able to fix this any time soon. The patch as such is probably to be abandoned, but I leave it here for reference what we tried so far. At least the crashtest will be added already in bug 1769878 (in the right directory).

Assignee: jstutte → nobody
Status: ASSIGNED → NEW
Attachment #9279063 - Attachment is obsolete: true

We added some extra processing before and after we destroy the cycle collector in bug 1803540 and we added the test already, so this seems obsolete now.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
See Also: → 1803540
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: