diff --git a/dom/src/base/nsGlobalWindow.cpp b/dom/src/base/nsGlobalWindow.cpp index eb77d4b7482d..5b4ade9b6671 100644 --- a/dom/src/base/nsGlobalWindow.cpp +++ b/dom/src/base/nsGlobalWindow.cpp @@ -1590,7 +1590,7 @@ GlobalWindowImpl::GetBrowserWindowInterface(nsIBrowserWindow*& aBrowser) nsresult ret; nsIWebShell *mRootWebShell; - mWebShell->GetRootWebShell(mRootWebShell); + mWebShell->GetRootWebShellEvenIfChrome(mRootWebShell); if (nsnull != mRootWebShell) { nsIWebShellContainer *mRootContainer; mRootWebShell->GetContainer(mRootContainer);