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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html

Issue 1579503004: Clear integrity failure bit in PendingScript on release (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2564
Patch Set: Created 4 years, 11 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/dom/PendingScript.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 <!-- Regression test for https://crbug.com/570340 -->
5 <title>Script loaded after failed integrity check should still load</tit le>
6 </head>
7 <body>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script>
11 var should_fail_test = async_test('should fail');
12 var should_succeed_test = async_test('should succeed');
13
14 function should_fail(loaded) {
15 should_fail_test.step(function() {
16 if (loaded)
17 assert_unreached();
18 else
19 this.done();
20 });
21 }
22
23 function success() {
24 should_succeed_test.step(function() {
25 this.done();
26 });
27 }
28 </script>
29 <script onerror="should_fail(false);" onload="should_fail(true);" src="r esources/simple-result.js" integrity="sha256-deadbeef"></script>
30 <script onerror="assert_unreached();" src="call-success.js"></script>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698