Bug #211834
r=bryner, sr=blizzard, a=mkaply Crash in GTK embedding with no parent window git-svn-id: svn://10.0.0.236/trunk@146020 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3ad15dffc0
commit
712516f701
@ -279,6 +279,9 @@ GtkPromptService::GetGtkWindowForDOMWindow(nsIDOMWindow* aDOMWindow)
|
||||
{
|
||||
nsCOMPtr<nsIWindowWatcher> wwatch = do_GetService("@mozilla.org/embedcomp/window-watcher;1");
|
||||
|
||||
if (!aDOMWindow)
|
||||
return NULL;
|
||||
|
||||
nsCOMPtr<nsIWebBrowserChrome> chrome;
|
||||
wwatch->GetChromeForWindow(aDOMWindow, getter_AddRefs(chrome));
|
||||
nsCOMPtr<nsIEmbeddingSiteWindow> siteWindow = do_QueryInterface(chrome);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user