Chromium Code Reviews

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-preload-blocked.html

Issue 1632523002: `<link rel=preload>` with no `as` should be subject to connect-src (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="connect-src http://foobar.te st:8000; script-src http://127.0.0.1:8000 'unsafe-inline'">
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 <link rel=preload href="../../resources/dummy.js" id=preload>
8 <script>
9 var t = async_test('Makes sure that connect-src allows link preload resource s with no as type');
10 var preload = document.getElementById("preload");
11 preload.onerror = t.step(function(){
12 t.done();
13 });
14 </script>
15 </head>
16 <body>
OLDNEW

Powered by Google App Engine