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

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority.html

Issue 1156413005: Implement hash function prioritization for SRI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority.html
new file mode 100644
index 0000000000000000000000000000000000000000..ec6cf44d5e0b5836990d73c3f211936c2d75baf4
--- /dev/null
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Priority of stronger hash functions</title>
+ </head>
+ <body>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script>
+ function scriptError() {
+ done();
+ };
+
+ function success() {
+ assert_unreached('Script loaded.');
+ done();
+ };
+ </script>
+ <script src="call-success.js" integrity="sha256-B0/62fJSJFrdjEFR9ba04m/D+LHQ+zG6PGcaR0Trpxg= sha512-deadbeef" onerror="scriptError();""></script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-hash-function-priority-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698