Closed Bug 1808691 Opened 1 year ago Closed 1 year ago

ContentParent::MaybeBeginShutDown should avoid repeated SignalImpendingShutdownToContentJS

Categories

(Core :: DOM: Content Processes, task)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

From bug 1755376 comment 22 we see that NotifiedImpendingShutdown can happen more than once. The most likely source for this are repeated calls to MaybeBeginShutDown which should thus check for re-entrance.

MaybeBeginShutDown can be called more than once and with different consequences depending on parameters. In order to avoid sending shutdown messages to the child process more than once, we handle re-entrance of the called functions separately rather than relying on IsDead() here.

Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Attachment #9310820 - Attachment description: Bug 1808691 - Handle re-entrance in SignalImpendingShutdownToContentJS and MaybeAsyncSendShutDownMessage. r?smaug → Bug 1808691 - Handle re-entrance in SignalImpendingShutdownToContentJS. r?smaug
Pushed by jstutte@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f2b606adb82
Handle re-entrance in SignalImpendingShutdownToContentJS. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: