Closed
Bug 1904442
Opened 1 year ago
Closed 1 year ago
Consider making GlobalTeardownObserver::mOwnerWindow a bool
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
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.
| Assignee | ||
Comment 1•1 year ago
|
||
Also HasOrHasHadOwner to HasOrHasHadOwnerWindow.
Updated•1 year ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•1 year ago
|
||
We can just static_cast.
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
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/85e6e9cc4489
https://hg.mozilla.org/mozilla-central/rev/df7327d207f1
https://hg.mozilla.org/mozilla-central/rev/c0605ff88f9d
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox129:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Updated•1 year ago
|
See Also: → CVE-2024-9680
You need to log in
before you can comment on or make changes to this bug.
Description
•