Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 95655) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -940,7 +940,7 @@ |
ec = HIERARCHY_REQUEST_ERR; |
return 0; |
} |
- iframe->setRemainsAliveOnRemovalFromTree(attached() && source->attached()); |
+ iframe->setRemainsAliveOnRemovalFromTree(attached() && source->attached() && iframe->canRemainAliveOnRemovalFromTree()); |
} |
if (source->parentNode()) |