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
Родитель d3c356c5c9
Коммит 8099c5ec20
2 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;