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

Unified Diff: trunk/Source/core/loader/ImageLoader.cpp

Issue 367143002: Revert 177385 "Block mixed <picture> and <img srcset> by default." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 6 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 | « trunk/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/loader/ImageLoader.cpp
===================================================================
--- trunk/Source/core/loader/ImageLoader.cpp (revision 177411)
+++ trunk/Source/core/loader/ImageLoader.cpp (working copy)
@@ -183,11 +183,7 @@
KURL url = imageURL();
ResourcePtr<ImageResource> newImage = 0;
if (!url.isNull()) {
- // Unlike raw <img>, we block mixed content inside of <picture> or <img srcset>.
- ResourceLoaderOptions resourceLoaderOptions;
- if (isHTMLPictureElement(element()->parentNode()) || !element()->fastGetAttribute(HTMLNames::srcsetAttr).isEmpty())
- resourceLoaderOptions.mixedContentBlockingTreatment = TreatAsActiveContent;
- FetchRequest request(ResourceRequest(url), element()->localName(), resourceLoaderOptions);
+ FetchRequest request(ResourceRequest(url), element()->localName());
if (bypassMainWorldCSP)
request.setContentSecurityCheck(DoNotCheckContentSecurityPolicy);
« no previous file with comments | « trunk/LayoutTests/http/tests/security/mixedContent/resources/frame-with-insecure-srcset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698