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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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
Index: third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
index e6d85763b0d6a5a2132a94dff0b0e4f767a700ea..5c13fc6655d14f84fb7f3362e9f3fadba6ee4cf6 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.cpp
@@ -256,10 +256,10 @@ bool CSSStyleSheet::canAccessRules() const {
return true;
if (document->getSecurityOrigin()->canRequestNoSuborigin(baseURL))
return true;
- if (m_allowRuleAccessFromOrigin &&
- document->getSecurityOrigin()->canAccessCheckSuborigins(
- m_allowRuleAccessFromOrigin.get()))
+ if (m_allowRuleAccessFromOrigin && document->getSecurityOrigin()->canAccess(
+ m_allowRuleAccessFromOrigin.get())) {
return true;
+ }
return false;
}
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp ('k') | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698