mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
d3c356c5c9
commit
8099c5ec20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user