| 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()) {
|
|
|