Bug 771833. Windows in mActiveWindows are all inner-windows. r=anant

This commit is contained in:
Robert O'Callahan 2012-07-26 16:05:00 -07:00
parent f417d29a6c
commit 9fe85ed390

View File

@ -113,7 +113,7 @@ public:
nsCOMPtr<nsDOMMediaStream> stream = nsDOMMediaStream::CreateInputStream();
nsPIDOMWindow *window = static_cast<nsPIDOMWindow*>
(nsGlobalWindow::GetOuterWindowWithId(mWindowID));
(nsGlobalWindow::GetInnerWindowWithId(mWindowID));
if (window && window->GetExtantDoc()) {
stream->CombineWithPrincipal(window->GetExtantDoc()->NodePrincipal());