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

Unified Diff: Source/core/css/CSSStyleSheet.h

Issue 1011103002: Allow cross-origin cssRules access to CORS-fetched stylesheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: compile fix.. Created 5 years, 9 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 | « LayoutTests/http/tests/security/resources/red-background.css ('k') | Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSStyleSheet.h
diff --git a/Source/core/css/CSSStyleSheet.h b/Source/core/css/CSSStyleSheet.h
index 87cd4fd20410622e205b819bdee43a44466232d8..a26e032201c7c4696f4f1f08ee291680d43d0ec6 100644
--- a/Source/core/css/CSSStyleSheet.h
+++ b/Source/core/css/CSSStyleSheet.h
@@ -36,6 +36,7 @@ class CSSStyleSheet;
class Document;
class ExceptionState;
class MediaQuerySet;
+class SecurityOrigin;
class StyleSheetContents;
enum StyleSheetUpdateType {
@@ -87,6 +88,8 @@ public:
MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
void setMediaQueries(PassRefPtrWillBeRawPtr<MediaQuerySet>);
void setTitle(const String& title) { m_title = title; }
+ // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this origin.
+ void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin);
class RuleMutationScope {
WTF_MAKE_NONCOPYABLE(RuleMutationScope);
@@ -136,6 +139,8 @@ private:
String m_title;
RefPtrWillBeMember<MediaQuerySet> m_mediaQueries;
+ RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin;
+
RawPtrWillBeMember<Node> m_ownerNode;
RawPtrWillBeMember<CSSRule> m_ownerRule;
« no previous file with comments | « LayoutTests/http/tests/security/resources/red-background.css ('k') | Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698