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

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

Issue 2805313003: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
1 <script>
2 var meta = document.createElement('meta');
3 meta.setAttribute('http-equiv', 'Content-Security-Policy');
4 meta.setAttribute('content', decodeURIComponent(location.search.substring(1)));
5 document.head.appendChild(meta);
6
7 function load_image(url) {
8 return new Promise(function(resolve, reject) {
9 var img = document.createElement('img');
10 document.body.appendChild(img);
11 img.onload = resolve;
12 img.onerror = reject;
13 img.src = url;
14 });
15 }
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698