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

Unified Diff: third_party/WebKit/Source/core/loader/ImageLoader.cpp

Issue 1801513003: Cross origin requests to same origin should match Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing CORS tests Created 4 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: third_party/WebKit/Source/core/loader/ImageLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.cpp b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
index 98e34319cab165988e75da47b316cc8eededc67b..f8e61ac8514d338c0228348e5c1e364797c8b9bc 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.cpp
@@ -241,8 +241,7 @@ static void configureRequest(FetchRequest& request, ImageLoader::BypassMainWorld
request.setContentSecurityCheck(DoNotCheckContentSecurityPolicy);
CrossOriginAttributeValue crossOrigin = crossOriginAttributeValue(element.fastGetAttribute(HTMLNames::crossoriginAttr));
- if (crossOrigin != CrossOriginAttributeNotSet)
- request.setCrossOriginAccessControl(element.document().getSecurityOrigin(), crossOrigin);
+ request.setCrossOriginAccessControl(element.document().getSecurityOrigin(), crossOrigin);
if (clientHintsPreferences.shouldSendResourceWidth() && isHTMLImageElement(element))
request.setResourceWidth(toHTMLImageElement(element).getResourceWidth());

Powered by Google App Engine
This is Rietveld 408576698