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

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

Issue 2805683005: Merge SecurityOrigin::canAccessCheckSuborigins into canAccess (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/SpecMapping.md ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.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/BindingSecurity.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp b/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp
index 516ef4dff5498d95b703de67ff7f23e7350fcaca..9dcfbd9f50671e60a1d8c4f2cd8822f8e83fd0d1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp
@@ -60,7 +60,7 @@ bool canAccessFrameInternal(const LocalDOMWindow* accessingWindow,
const SecurityOrigin* accessingOrigin =
accessingWindow->document()->getSecurityOrigin();
- if (!accessingOrigin->canAccessCheckSuborigins(targetFrameOrigin))
+ if (!accessingOrigin->canAccess(targetFrameOrigin))
return false;
// Notify the loader's client if the initial document has been accessed.
@@ -241,7 +241,7 @@ bool BindingSecurity::shouldAllowNamedAccessTo(const DOMWindow* accessingWindow,
SECURITY_CHECK(!(targetWindow && targetWindow->frame()) ||
targetWindow == targetWindow->frame()->domWindow());
- if (!accessingOrigin->canAccessCheckSuborigins(targetOrigin))
+ if (!accessingOrigin->canAccess(targetOrigin))
return false;
// Note that there is no need to call back
« no previous file with comments | « third_party/WebKit/Source/SpecMapping.md ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698