| 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>
|
|
|