Closed
Bug 1123016
Opened 11 years ago
Closed 11 years ago
Mark DOMEventTargetHelper::mParentObject/mOwnerWindow as non-owning; r=smaug
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file, 2 obsolete files)
|
7.64 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8550826 -
Flags: review?(bugs)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ehsan
Updated•11 years ago
|
Attachment #8550826 -
Flags: review?(bugs) → review-
| Assignee | ||
Updated•11 years ago
|
Attachment #8550826 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8550926 -
Flags: review?(bugs)
Comment 4•11 years ago
|
||
Comment on attachment 8550926 [details] [diff] [review]
Clarify the ownership of DOMEventTargetHelper::mParentObject/mOwnerWindow
Sorry, no, we explicitly got rid of the
DETH->nsGlobalWindow edge at some point in order to release memory
faster when necko is keeping XHR/EventSource/WebSocket alive.
Don't want to add that edge back.
Attachment #8550926 -
Flags: review?(bugs) → review-
Comment 6•11 years ago
|
||
I don't know yet. Can we require all the nsIGlobalObjects to support nsWeakRefs?
Flags: needinfo?(bugs)
Comment 7•11 years ago
|
||
Looks like only TabChildGlobal and WorkerGlobalScope don't support weak refs.
| Assignee | ||
Comment 8•11 years ago
|
||
Perhaps we can make them support weak refs or two and MOZ_ASSERT the nsWeakPtr we get out of the nsIGlobalObject to catch future implementations that don't support weak refs?
Comment 9•11 years ago
|
||
Yeah, sounds good.
| Assignee | ||
Comment 10•11 years ago
|
||
This patch converts DOMEventTargetHelper::mParentObject into an
nsWeakPtr, and adds fatal assertions to ensure that all future
nsIGlobalObject implementations support weak references. It also marks
DOMEventTargetHelper::mOwnerWindow as a non-owning reference.
Attachment #8553512 -
Flags: review?(bugs)
| Assignee | ||
Updated•11 years ago
|
Attachment #8550926 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #8553512 -
Flags: review?(bugs) → review+
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•