Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index 529191ca6e437ccbcd38f67367432a24e5252e0b..6d85b6196403bb0ba98fdf726a2102141cf09183 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -224,6 +224,7 @@ FrameLoader::FrameLoader(Frame* frame, FrameLoaderClient* client) |
, m_didAccessInitialDocumentTimer(this, &FrameLoader::didAccessInitialDocumentTimerFired) |
, m_suppressOpenerInNewFrame(false) |
, m_forcedSandboxFlags(SandboxNone) |
+ , m_frameDetaching(false) |
{ |
} |
@@ -2092,8 +2093,14 @@ void FrameLoader::handledOnloadEvents() |
documentLoader()->handledOnloadEvents(); |
} |
+bool FrameLoader::isFrameDetaching() |
+{ |
+ return m_frameDetaching; |
+} |
+ |
void FrameLoader::frameDetached() |
{ |
+ m_frameDetaching = true; |
// stopAllLoaders can detach the Frame, so protect it. |
RefPtr<Frame> protect(m_frame); |
stopAllLoaders(); |