| Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| index f0076ae811104f7e54b8937d483223412fe1669a..efdd217ed6b58c47de943e992ac95fbf565700cb 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
|
| @@ -181,7 +181,6 @@ FrameLoader::FrameLoader(LocalFrame* frame)
|
| , m_loadType(FrameLoadTypeStandard)
|
| , m_inStopAllLoaders(false)
|
| , m_checkTimer(TaskRunnerHelper::getLoadingTaskRunner(frame), this, &FrameLoader::checkTimerFired)
|
| - , m_didAccessInitialDocument(false)
|
| , m_forcedSandboxFlags(SandboxNone)
|
| , m_dispatchingDidClearWindowObjectInMainWorld(false)
|
| , m_protectProvisionalLoader(false)
|
| @@ -1077,10 +1076,8 @@ void FrameLoader::stopAllLoaders()
|
|
|
| void FrameLoader::didAccessInitialDocument()
|
| {
|
| - // We only need to notify the client once, and only for the main frame.
|
| - if (isLoadingMainFrame() && !m_didAccessInitialDocument) {
|
| - m_didAccessInitialDocument = true;
|
| -
|
| + // We only need to notify the client for the main frame.
|
| + if (isLoadingMainFrame()) {
|
| // Forbid script execution to prevent re-entering V8, since this is
|
| // called from a binding security check.
|
| ScriptForbiddenScope forbidScripts;
|
|
|