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

Side by Side Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity-console-messages.html

Issue 1166003004: SRI fail open on ineligible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove a bunch of -expected.txt files Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>SRI invalid integrity attributes</title>
5 </head>
6 <body>
7 <script>
8 if (window.testRunner)
9 window.testRunner.dumpAsText();
10
11 var count = 0;
12 function checkDone() {
13 if (count == 2)
14 done();
15 count++;
16 }
17 function success() {
18 alert('PASS');
19 }
20 function scriptError() {
21 alert('FAIL');
22 }
23 </script>
24 <script src='call-success.js' onerror="scriptError();" integrity="sha256 ;B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg="></script>
25 <script src='call-success.js' onerror="scriptError();" integrity="sha256 :B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg="></script>
26 <script src='call-success.js' onerror="scriptError();" integrity="sha256 -(B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg=)"></script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698