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.
git-svn-id: svn://10.0.0.236/trunk@81664 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user