Bug 1122987 - Mark nsPIDOMWindow::mInnerWindow as non-owning; r=smaug

The inner window holds an owning reference to its outer window,
and the outer window holds a non-owning reference back to its
inner window.  The non-owning reference is managed by
nsGlobalWindow.
This commit is contained in:
Ehsan Akhgari 2015-01-17 19:35:53 -05:00
parent 53a5e2bb9c
commit 9036a7eadd

View File

@ -835,7 +835,7 @@ protected:
float mAudioVolume;
// And these are the references between inner and outer windows.
nsPIDOMWindow *mInnerWindow;
nsPIDOMWindow* MOZ_NON_OWNING_REF mInnerWindow;
nsCOMPtr<nsPIDOMWindow> mOuterWindow;
// the element within the document that is currently focused when this