Fixing crash in nsFocusController::GetWindowFromDocument. Patch by allan@beaufour.dk, r+sr=jst@mozilla.org, a=benjamin@smedbergs.us
git-svn-id: svn://10.0.0.236/trunk@176946 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5bfcfae787
commit
fb231145d1
@ -394,7 +394,7 @@ nsFocusController::GetWindowFromDocument(nsIDOMDocument* aDocument)
|
||||
nsCOMPtr<nsPIDOMWindow> win =
|
||||
do_QueryInterface(doc->GetScriptGlobalObject());
|
||||
|
||||
if (win->IsInnerWindow()) {
|
||||
if (win && win->IsInnerWindow()) {
|
||||
return win->GetOuterWindow();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user