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

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html

Issue 1126343003: Ignore unknown options to subresource integrity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed option parsing + nits from mkwst Created 5 years, 7 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-blocked-mimetypes.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html
deleted file mode 100644
index c59fcad48abb53707f91d6dba44f439d5215d847..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<head>
- <title>SRI with bad MIME types are blocked</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
- <script>
- var test = async_test("Test that scripts with bad MIME types don't load.");
- var result = false;
- var tests = [
- {
- 'src': 'resources/setResultWithMIME.php?mime=application/javascript&value=true',
- 'integrity': 'sha256-_CPhHgLf4bYjXZA6KVnegM7ECdy7A3f35ntfHeYy9zI=?ct=applicationjavascript'
- },
- {
- 'src': 'resources/setResultWithMIME.php?mime=application/javascript&value=true',
- 'integrity': 'sha256-_CPhHgLf4bYjXZA6KVnegM7ECdy7A3f35ntfHeYy9zI=?ct=app/javascript'
- }
- ];
- function scriptLoad() {
- test.step(function() {
- assert_unreached();
- });
- }
- function scriptError() {
- test.step(function() {
- assert_false(result);
- nextTest();
- });
- }
- function nextTest() {
- var next = tests.shift();
- if (!next) {
- test.done();
- return;
- }
- result = false;
- var script = document.createElement('script');
- script.onload = scriptLoad;
- script.onerror = scriptError;
- script.src = next.src;
- script.integrity = next.integrity;
- document.body.appendChild(script);
- }
- window.onload = function() {
- nextTest();
- };
- </script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698