Bug 897852 - Don't flush if we were destroyed. r=roc

This commit is contained in:
Mats Palmgren 2013-07-30 15:47:19 +00:00
parent ebe305a239
commit 966905cebe
3 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body style="display: table-column;">
<iframe src="data:text/html,<html contenteditable=''><script>var f = window.frameElement; window.addEventListener('load', function() { window.addEventListener('DOMNodeInserted', function() { f.parentNode.removeChild(f); }, true); f.parentNode.style.cssFloat = 'right'; }, false);</script>";"
</body>
</html>

View File

@ -413,3 +413,4 @@ load 860579-1.html
pref(layers.force-active,true) load 859526-1.html
pref(layers.force-active,true) load 859630-1.html
load 866588.html
load 897852.html

View File

@ -3701,8 +3701,9 @@ PresShell::HandlePostedReflowCallbacks(bool aInterruptible)
mozFlushType flushType =
aInterruptible ? Flush_InterruptibleLayout : Flush_Layout;
if (shouldFlush)
if (shouldFlush && !mIsDestroying) {
FlushPendingNotifications(flushType);
}
}
bool