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

Unified Diff: third_party/WebKit/LayoutTests/fast/loader/sri-with-empty-response.html

Issue 2418083002: Fix LinkStyle SRI check when against 0 sized resource. (Closed)
Patch Set: review Created 4 years, 2 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
Index: third_party/WebKit/LayoutTests/fast/loader/sri-with-empty-response.html
diff --git a/third_party/WebKit/LayoutTests/fast/loader/sri-with-empty-response.html b/third_party/WebKit/LayoutTests/fast/loader/sri-with-empty-response.html
new file mode 100644
index 0000000000000000000000000000000000000000..71112e1505336720d63c8926283184c1843f3701
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/loader/sri-with-empty-response.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<link rel="stylesheet" href="../../resources/empty.css" integrity="sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==">
+<script>
+test(function() { assert_true(true); }, "Should not crash on empty response.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698