зеркало из https://github.com/mozilla/gecko-dev.git
Bug 587573 - Log image requests to the WebConsole: DocShell fix r=bzbarsky a=blocking2.0
This commit is contained in:
Родитель
cbcaa3167f
Коммит
24dea9abc8
|
@ -10919,16 +10919,18 @@ nsDocShell::Observe(nsISupports *aSubject, const char *aTopic,
|
|||
NS_IMETHODIMP
|
||||
nsDocShell::GetAssociatedWindow(nsIDOMWindow** aWindow)
|
||||
{
|
||||
return CallGetInterface(this, aWindow);
|
||||
CallGetInterface(this, aWindow);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::GetTopWindow(nsIDOMWindow** aWindow)
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIDOMWindow> win = do_GetInterface(GetAsSupports(this), &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
return win->GetTop(aWindow);
|
||||
nsCOMPtr<nsIDOMWindow> win = do_GetInterface(GetAsSupports(this));
|
||||
if (win) {
|
||||
win->GetTop(aWindow);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче