| Index: Source/core/html/HTMLLinkElement.cpp
|
| diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
|
| index 9025639b7fae91cba4e8635db5337f4b3d32c78f..8deeff318994067f572e9b899fd0cdedcccb692a 100644
|
| --- a/Source/core/html/HTMLLinkElement.cpp
|
| +++ b/Source/core/html/HTMLLinkElement.cpp
|
| @@ -598,10 +598,8 @@ void LinkStyle::process()
|
| // 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()) {
|
| - StoredCredentials allowCredentials = equalIgnoringCase(crossOriginMode, "use-credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials;
|
| - request.setCrossOriginAccessControl(document().securityOrigin(), allowCredentials);
|
| - }
|
| + if (!crossOriginMode.isNull())
|
| + request.setCrossOriginAccessControl(document().securityOrigin(), crossOriginMode);
|
| setResource(document().fetcher()->fetchCSSStyleSheet(request));
|
|
|
| if (!resource()) {
|
|
|