Closed Bug 1904442 Opened 1 year ago Closed 1 year ago

Consider making GlobalTeardownObserver::mOwnerWindow a bool

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

Seems it could be a bool + static_cast instead of a whole pointer, and it might save some memory because it's used in not-totally-uncommon objects like MediaQueryList / AbortSignal / Animation... I guess most other objects using this are not that common.

Also HasOrHasHadOwner to HasOrHasHadOwnerWindow.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/85e6e9cc4489 Rename GlobalTeardownObserver::GetOwner to GetOwnerWindow. r=smaug,media-playback-reviewers,dom-storage-reviewers,aosmond,padenot,asuth https://hg.mozilla.org/integration/autoland/rev/df7327d207f1 Remove GlobalTearDownObserver::mOwnerWindow. r=smaug https://hg.mozilla.org/integration/autoland/rev/c0605ff88f9d apply code formatting via Lando
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
See Also: → CVE-2024-9680
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: