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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-in-insecure-worker.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-in-insecure-worker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-in-insecure-worker.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-in-insecure-worker.html
deleted file mode 100644
index 925207ee49c8c846b5619df01b5cad03e1574144..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webcrypto-in-insecure-worker.html
+++ /dev/null
@@ -1,31 +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 worker = new Worker("resources/webcrypto-worker.js");
- worker.addEventListener("message", this.step_func(function (evt) {
- assert_equals(evt.data.message,
- 'Only secure origins are allowed (see: ' +
- 'https://goo.gl/Y0ZkNV).');
- this.done();
- }));
- worker.postMessage("go");
- }, "WebCrypto not allowed on insecure origin");
- }
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698