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

Unified Diff: trunk/Source/core/html/HTMLLinkElement.cpp

Issue 203593008: Revert 169496 "HTML Imports: Send credentials for same origin re..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 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
Index: trunk/Source/core/html/HTMLLinkElement.cpp
===================================================================
--- trunk/Source/core/html/HTMLLinkElement.cpp (revision 169503)
+++ trunk/Source/core/html/HTMLLinkElement.cpp (working copy)
@@ -681,8 +681,10 @@
// Load stylesheets that are not needed for the rendering immediately with low priority.
FetchRequest request = builder.build(blocking);
AtomicString crossOriginMode = m_owner->fastGetAttribute(HTMLNames::crossoriginAttr);
- if (!crossOriginMode.isNull())
- request.setCrossOriginAccessControl(document().securityOrigin(), crossOriginMode);
+ if (!crossOriginMode.isNull()) {
+ StoredCredentials allowCredentials = equalIgnoringCase(crossOriginMode, "use-credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials;
+ request.setCrossOriginAccessControl(document().securityOrigin(), allowCredentials);
+ }
setResource(document().fetcher()->fetchCSSStyleSheet(request));
if (!resource()) {
« no previous file with comments | « trunk/Source/core/fetch/ResourceLoader.cpp ('k') | trunk/Source/core/html/imports/HTMLImportsController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698