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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/mixed-content/imageset.https.sub.html

Issue 2855163002: Avoid sending mixed-content requests for ImageSet contexts (Closed)
Patch Set: Better check and a test Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Mixed-Content: imageset tests</title>
5 <meta charset='utf-8'>
6 <meta name="description" content="Test behavior of imageset resources, makin g sure that resources are not downloaded.">
7 <link rel="author" title="Yoav Weiss" href="yoav@yoav.ws">
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script src="/preload/resources/preload_helper.js"></script>
11 <script>
12 var t = async_test('Makes sure imageset blockable resources are not downlo aded');
13 </script>
14 </head>
15 <body>
16 <img src="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?img_src">
17 <picture>
18 <source srcset="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?pi cture">
19 <img>
20 </picture>
21 <img srcset="http://{{domains[]}}:{{ports[http][0]}}/images/smiley.png?img_src set">
22 <script>
23 window.addEventListener("load", t.step_func(function() {
24 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/ smiley.png?img_src", 1);
25 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/ smiley.png?picture", 0);
26 verifyNumberOfDownloads("http://{{domains[]}}:{{ports[http][0]}}/images/ smiley.png?img_srcset", 0);
27 t.done();
28 }));
29 </script>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698