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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/call-success-with-integrity-frame.html

Issue 1578993002: Fix double resource request for script resources with integrity attr. (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/call-success-with-integrity-frame.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/call-success-with-integrity-frame.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/call-success-with-integrity-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..82637db857c23f68225cea714940afb09d3d1e35
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/resources/call-success-with-integrity-frame.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML>
+<html>
+<script>
+function success() {
+ console.log("Script loaded successfully.");
+}
+
+function scriptFail() {
+ console.log("Script failed to load.");
+}
+</script>
+
+<script onerror='scriptFail();' integrity='sha256-B0/62fJSJFrdjEFR9ba04m/D+LHQ+zG6PGcaR0Trpxg=' src='call-success.js'></script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698