Index: Source/core/frame/Frame.cpp |
diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
index 5b2dd6f736d1e5af66934d31a629b9d73601cc2c..6cd08829c48cfaf7109ccb9ed6b271a76c4132fc 100644 |
--- a/Source/core/frame/Frame.cpp |
+++ b/Source/core/frame/Frame.cpp |
@@ -192,7 +192,7 @@ void Frame::setView(PassRefPtr<FrameView> view) |
// Prepare for destruction now, so any unload event handlers get run and the DOMWindow is |
// notified. If we wait until the view is destroyed, then things won't be hooked up enough for |
// these calls to work. |
- if (!view && document() && document()->confusingAndOftenMisusedAttached()) { |
+ if (!view && document() && document()->isActive()) { |
// FIXME: We don't call willRemove here. Why is that OK? |
document()->prepareForDestruction(); |
} |