Bug 218203 Crash when trying to show prompt from onunload p=chpe+mozbugz@stud.uni-saarland.de r=bryner sr=blizzard a=asa
git-svn-id: svn://10.0.0.236/trunk@146559 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1508ed3f85
commit
1a792d0598
@ -285,6 +285,10 @@ GtkPromptService::GetGtkWindowForDOMWindow(nsIDOMWindow* aDOMWindow)
|
||||
nsCOMPtr<nsIWebBrowserChrome> chrome;
|
||||
wwatch->GetChromeForWindow(aDOMWindow, getter_AddRefs(chrome));
|
||||
nsCOMPtr<nsIEmbeddingSiteWindow> siteWindow = do_QueryInterface(chrome);
|
||||
|
||||
if (!siteWindow)
|
||||
return NULL;
|
||||
|
||||
GtkWidget* parentWidget;
|
||||
siteWindow->GetSiteWindow((void**)&parentWidget);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user