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

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

Issue 2692633002: Use [SecureContext] for navigator.storage (Closed)
Patch Set: TypeError and rebased tests Created 3 years, 10 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/durable-storage-on-insecure-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
index 95b792d4c31d120fe3bd5f57f1c944e94933238f..00f58d9d6ec141d82f5e5e0311c2b93d138b346b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
@@ -5,10 +5,11 @@
<script src="/resources/get-host-info.js"></script>
<script>
if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
- window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
+ window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
} else {
- promise_test(function(test) {
- return promise_rejects(test, 'SecurityError', navigator.storage.persist());
- }, "Requires secure context");
+ test(function(test) {
+ assert_false('storage' in navigator,
+ 'navigator.storage attribute has [SecureContext]');
+ }, 'Requires secure context');
}
</script>

Powered by Google App Engine
This is Rietveld 408576698