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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-on-insecure-origin.html

Issue 2838603002: Added [SecureContext] to the subtle attribute (Closed)
Patch Set: Magic test starts doing differnt things out of the blue. Need to handle this properly. Avada Kedavr… Created 3 years, 8 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/security/powerfulFeatureRestrictions/webcrypto-on-insecure-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-on-insecure-origin.html
deleted file mode 100644
index 97cbb2bffc8d00bb21d9b2f3b8b99d7a2a26e483..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-on-insecure-origin.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>WebCrypto On An Insecure Origin</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="/resources/get-host-info.js"></script>
-</head>
-<body></body>
-<script>
- if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
- window.location = get_host_info().UNAUTHENTICATED_ORIGIN +
- window.location.pathname;
- } else {
- if (window.testRunner)
- testRunner.overridePreference(
- "WebKitStrictPowerfulFeatureRestrictions", true);
-
- async_test(function () {
- var jwkKey = {
- kty: "oct",
- k: "jnOw99oOZFLIEPMrgJB55WL46tJSLGt7jnOw99oOZFI"
- };
- Promise.resolve(null).then(this.step_func(function (result) {
- return crypto.subtle.importKey("jwk", jwkKey,
- {name: "AES-CBC"},
- true,
- ['encrypt', 'decrypt',
- 'wrapKey', 'unwrapKey']);
- })).then(this.step_func(function (result) {
- assert_unreached('crypto.subtle should fial, but succeeded.');
- this.done();
- }), this.step_func(function (result) {
- assert_equals(result.message, 'Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).');
- this.done();
- }));
- }, "WebCrypto not allowed on insecure origin");
- }
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698