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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2881393002: Count cross-origin property access. (Closed)
Patch Set: Nits + Rebase. Created 3 years, 7 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
Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index 1e6b1b694ac7b88a8a454348bce30302a726f0e7..bd10ab0c91e6723556f3074c0c7b140f7b5cbdf6 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -1658,8 +1658,9 @@ DOMWindow* LocalDOMWindow::open(const String& url_string,
if (target_frame) {
if (!active_document->GetFrame() ||
- !active_document->GetFrame()->CanNavigate(*target_frame))
+ !active_document->GetFrame()->CanNavigate(*target_frame)) {
return nullptr;
+ }
KURL completed_url = first_frame->GetDocument()->CompleteURL(url_string);
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/BindingSecurityTest.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698