Closed Bug 1651802 Opened 5 years ago Closed 5 years ago

Replace all uses of JSWindowActor willDestroy with didDestroy

Categories

(Core :: DOM: Content Processes, task, P2)

task

Tracking

()

RESOLVED FIXED
84 Branch
Fission Milestone M6c
Tracking Status
firefox84 --- fixed

People

(Reporter: cpeterson, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

What does frontend want from actor lifecycle methods? Can frontend listen for didDestroy in the parent process instead of willDestroy? willDestroy is not reliable.

Should the actor lifecycle methods be changed to mimic web events pageshow/pagehide plus innerwindowdestroy?

Waiting to hear from Neil Deakin in bug 1649318 which actor fields frontend code uses in willDestroy that aren't available in didDestroy. The DOM Fission team would prefer to remove willDestroy entirely (because it is an unreliable event) in favor of didDestroy.

Fission Milestone: ? → M6b
See Also: 1649318, 1649317, 1621726, 1609183
Summary: Audit uses of JSWindowActor willDestroy → Audit uses of JSWindowActor willDestroy and didDestroy
Fission Milestone: M6b → M6c
See Also: → 1649317, 1621726
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Severity: -- → N/A
Summary: Audit uses of JSWindowActor willDestroy and didDestroy → Replace all uses of JSWindowActor willDestroy with didDestroy
Attachment #9176638 - Attachment description: Bug 1651802, replace willDestroy methods in conduit actors with didDestroy, r=zombie → Bug 1651802, replace willDestroy methods in conduit actors with didDestroy, as willDestroy method will be removed, r=zombie

willDestroy will be removed in bug 1662771, so we first need to switch uses of JSWindowActor willDestroy with didDestroy.

Blocks: 1662771
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a91e5949ec8f replace willDestroy methods in actors with didDestroy, add null-check in picture-in-picture actor which occurs if removeMouseButtonListeners while tab is closed, r=mconley https://hg.mozilla.org/integration/autoland/rev/2a46f29c8cdd replace willDestroy methods in conduit actors with didDestroy, as willDestroy method will be removed, r=zombie
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: