mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Fixing bug 100270. Crash when evaluating 'window.close();' in the JavaScript console. r=waterson@netscape.com, sr=hyatt@netscape.com
This commit is contained in:
parent
229409f54e
commit
1a88564de0
@ -9736,6 +9736,8 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
||||
{
|
||||
nsresult result = NS_OK;
|
||||
|
||||
nsCOMPtr<nsIStyleFrameConstruction> kungFuDeathGrip(this);
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsIFrame* primaryFrame;
|
||||
|
@ -5878,8 +5878,10 @@ PresShell::WillCauseReflow()
|
||||
|
||||
nsresult
|
||||
PresShell::DidCauseReflow()
|
||||
{
|
||||
mViewManager->CacheWidgetChanges(PR_FALSE);
|
||||
{
|
||||
if (mViewManager) {
|
||||
mViewManager->CacheWidgetChanges(PR_FALSE);
|
||||
}
|
||||
|
||||
if (!gAsyncReflowDuringDocLoad && mDocumentLoading) {
|
||||
FlushPendingNotifications(PR_FALSE);
|
||||
|
@ -5878,8 +5878,10 @@ PresShell::WillCauseReflow()
|
||||
|
||||
nsresult
|
||||
PresShell::DidCauseReflow()
|
||||
{
|
||||
mViewManager->CacheWidgetChanges(PR_FALSE);
|
||||
{
|
||||
if (mViewManager) {
|
||||
mViewManager->CacheWidgetChanges(PR_FALSE);
|
||||
}
|
||||
|
||||
if (!gAsyncReflowDuringDocLoad && mDocumentLoading) {
|
||||
FlushPendingNotifications(PR_FALSE);
|
||||
|
@ -9736,6 +9736,8 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
|
||||
{
|
||||
nsresult result = NS_OK;
|
||||
|
||||
nsCOMPtr<nsIStyleFrameConstruction> kungFuDeathGrip(this);
|
||||
|
||||
nsCOMPtr<nsIPresShell> shell;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
nsIFrame* primaryFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user