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:
jst%netscape.com 2001-09-19 07:08:15 +00:00
parent 229409f54e
commit 1a88564de0
4 changed files with 12 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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