зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4efb0838da
Коммит
51c95e083c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче