Fix blocker bug #85703. Crashes on popup windows. r=adamlock,sr=tor,a=asa
git-svn-id: svn://10.0.0.236/trunk@97155 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2615,6 +2615,10 @@ nsDocShell::ForceUpdate(nsIDocShell* aDocShell)
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
aDocShell->GetPresShell(getter_AddRefs(presShell));
|
||||
|
||||
// we might not have a presshell yet
|
||||
if (!presShell)
|
||||
return;
|
||||
|
||||
nsCOMPtr<nsIViewManager> vm;
|
||||
presShell->GetViewManager(getter_AddRefs(vm));
|
||||
if (vm) {
|
||||
|
||||
Reference in New Issue
Block a user