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

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-expected.txt

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT Created 5 years, 9 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: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-expected.txt
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-expected.txt b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..82f87bdbcecabf3ab6518a7150aaeac89d50577e
--- /dev/null
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-expected.txt
@@ -0,0 +1,11 @@
+CONSOLE ERROR: Subresource Integrity: The resource 'http://localhost:8000/security/resources/cors-script.php?credentials=true&cors=false&value=true' has an integrity attribute, but the resource requires CORS to be enabled to check the integrity, and it is not. The resource has been blocked.
+The test passes if the script fails to run and there is also a console error saying that the specified integrity attribute cannot be enforced because the resource is not CORS enabled.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS Script did not run.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698