Closed Bug 993706 Opened 10 years ago Closed 10 years ago

Remove nsGlobalWindow::mInnerWindowHolder

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: peterv, Assigned: peterv)

References

Details

Attachments

(1 file)

Attached patch v1Splinter Review
It's a nsIXPConnectJSObjectHolder, so it can't store the WebIDL object. It's not really needed though, the inner is kept alive by the outer proxy as its target. The WindowStateHolder can just hold the inner nsGlobalWindow and preserve its wrapper.
Attachment #8403587 - Flags: review?(bzbarsky)
Comment on attachment 8403587 [details] [diff] [review]
v1

>-  MOZ_ASSERT(aNewInner->GetWrapperPreserveColor());

Maybe assert that aNewInner->GetWrapperPreserveColor() == aGlobal?

r=me
Attachment #8403587 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/915bf0a150a4
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: