-
creis@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=107963 Source/WebCore: Notifies the FrameLoaderClient if another page accesses the initial empty document of a main frame. In this case, it is no longer safe to display the provisional URL. Only takes effect for PLATFORM(CHROMIUM), since no other platforms listen to the notification. Reviewed by Adam Barth. * bindings/v8/V8DOMWindowShell.cpp: (WebCore::V8DOMWindowShell::setSecurityToken): Use default token for initial document. * bindings/v8/custom/V8DOMWindowCustom.cpp: Notify loader if initial document is accessed. (WebCore::V8DOMWindow::namedSecurityCheck): (WebCore::V8DOMWindow::indexedSecurityCheck): * loader/FrameLoader.cpp: (WebCore::FrameLoader::FrameLoader): (WebCore::FrameLoader::didAccessInitialDocument): (WebCore): * loader/FrameLoader.h: (FrameLoader): * loader/FrameLoaderClient.h: (FrameLoaderClient): (WebCore::FrameLoaderClient::didAccessInitialDocument): Source/WebKit/chromium: Notifies WebFrameClient if another page accesses the initial empty document of a main frame. In this case, it is no longer safe to display the provisional URL. Reviewed by Adam Barth. * public/WebFrameClient.h: (WebFrameClient): (WebKit::WebFrameClient::didAccessInitialDocument): * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::didAccessInitialDocument): (WebKit): * src/FrameLoaderClientImpl.h: (FrameLoaderClientImpl): * tests/WebFrameTest.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0df3ebc8