Fix for rtm++ bug 54568. a=buster. r=vidur. Fixes crash on sending a mail message from webmail. Also fixes crash on canceling out of the "Plugin not found" dialog that pops up on www.cbsnews.com when you want to see a video clip and the RealVideo plugin is not installed.

This commit is contained in:
nisheeth%netscape.com 2000-10-24 06:34:01 +00:00
parent d3c356c5c9
commit 8099c5ec20
2 changed files with 22 additions and 2 deletions

View File

@ -5018,7 +5018,17 @@ struct ReflowEvent : public PLEvent {
PRBool isBatching;
ps->SetReflowEventStatus(PR_FALSE);
ps->GetReflowBatchingStatus(&isBatching);
if (!isBatching) ps->ProcessReflowCommands(PR_TRUE);
if (!isBatching) {
nsCOMPtr<nsIViewManager> viewManager;
// Set a kung fu death grip on the view manager associated with the pres shell
// before processing that pres shell's reflow commands. Fixes bug 54868.
presShell->GetViewManager(getter_AddRefs(viewManager));
ps->ProcessReflowCommands(PR_TRUE);
// Now, explicitly release the pres shell before the view manager
presShell = nsnull;
viewManager = nsnull;
}
}
else
mPresShell = 0;

View File

@ -5018,7 +5018,17 @@ struct ReflowEvent : public PLEvent {
PRBool isBatching;
ps->SetReflowEventStatus(PR_FALSE);
ps->GetReflowBatchingStatus(&isBatching);
if (!isBatching) ps->ProcessReflowCommands(PR_TRUE);
if (!isBatching) {
nsCOMPtr<nsIViewManager> viewManager;
// Set a kung fu death grip on the view manager associated with the pres shell
// before processing that pres shell's reflow commands. Fixes bug 54868.
presShell->GetViewManager(getter_AddRefs(viewManager));
ps->ProcessReflowCommands(PR_TRUE);
// Now, explicitly release the pres shell before the view manager
presShell = nsnull;
viewManager = nsnull;
}
}
else
mPresShell = 0;