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:
blizzard%redhat.com
2001-06-14 17:42:16 +00:00
parent 40912a9382
commit b7d576b7aa
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {