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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html

Issue 1665533003: Set the request mode and the credentials mode of FetchEvent in the service worker correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 <script src="../../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="test-helpers.js"></script> 2 <script src="test-helpers.js"></script>
3 <body> 3 <body>
4 <script> 4 <script>
5 5
6 function load_image(url, cross_origin) { 6 function load_image(url, cross_origin) {
7 var img = document.createElement('img'); 7 var img = document.createElement('img');
8 if (cross_origin != '') { 8 if (cross_origin != '') {
9 img.crossOrigin = cross_origin; 9 img.crossOrigin = cross_origin;
10 } 10 }
(...skipping 30 matching lines...) Expand all
41 document.body.appendChild(div); 41 document.body.appendChild(div);
42 div.style[type] = 'url(' + url + ')'; 42 div.style[type] = 'url(' + url + ')';
43 } 43 }
44 44
45 function load_css_image_set(url, type) { 45 function load_css_image_set(url, type) {
46 var div = document.createElement('div'); 46 var div = document.createElement('div');
47 document.body.appendChild(div); 47 document.body.appendChild(div);
48 div.style[type] = '-webkit-image-set(url(' + url + ') 1x)'; 48 div.style[type] = '-webkit-image-set(url(' + url + ') 1x)';
49 } 49 }
50 50
51 function load_audio(url, cross_origin) {
52 var audio = document.createElement('audio');
53 if (cross_origin != '') {
54 audio.crossOrigin = cross_origin;
55 }
56 audio.src = url;
57 document.body.appendChild(audio);
58 }
51 </script> 59 </script>
52 </body> 60 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698