| 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 5498c84b3f5ac560713935a20ffce2c1c1a5aade..95b792d4c31d120fe3bd5f57f1c944e94933238f 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
|
| @@ -1,15 +1,14 @@
|
| <!DOCTYPE html>
|
| <title>Request Durable Storage On An Insecure Origin</title>
|
| <script src="/resources/testharness.js"></script>
|
| -<script src="/resources/testharness-helpers.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <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;
|
| } else {
|
| - promise_test(function() {
|
| - return assert_promise_rejects(navigator.storage.persist(), 'SecurityError');
|
| + promise_test(function(test) {
|
| + return promise_rejects(test, 'SecurityError', navigator.storage.persist());
|
| }, "Requires secure context");
|
| }
|
| </script>
|
|
|