Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp

Issue 2177233002: binding: Calls didAccessInitialDocument() for a returned Window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated SSLUITest's test expectation. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
index 4725c465cadedac1acd56151d22cfb18d2c251b2..28ab101a3466e84e954595e2a40c3f7b9a4020c5 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp
@@ -244,6 +244,16 @@ void V8Window::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
if (!openedWindow)
return;
+ if (openedWindow->isLocalDOMWindow()) {
+ LocalFrame* targetFrame = toLocalDOMWindow(openedWindow)->frame();
+ if (targetFrame) {
+ // Notify the loader's client if the initial document has been accessed.
+ if (targetFrame->loader().stateMachine()->isDisplayingInitialEmptyDocument()) {
+ targetFrame->loader().didAccessInitialDocument();
+ }
+ }
+ }
+
v8SetReturnValueFast(info, openedWindow, impl);
}
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698