mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 08:09:15 +00:00
Bug 372247, crash simulating key events on a window with no frame, r+sr=roc
This commit is contained in:
parent
3d6d15d00a
commit
794743a7b5
@ -261,8 +261,11 @@ nsDOMWindowUtils::GetWidget()
|
||||
if (docShell) {
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
docShell->GetPresShell(getter_AddRefs(presShell));
|
||||
if (presShell)
|
||||
return presShell->GetRootFrame()->GetWindow();
|
||||
if (presShell) {
|
||||
nsIFrame* frame = presShell->GetRootFrame();
|
||||
if (frame)
|
||||
return frame->GetWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user