| Index: LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
|
| diff --git a/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html b/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
|
| similarity index 59%
|
| copy from LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| copy to LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
|
| index 0007605d947a9d135756d5b29d9ce6b729cc1dad..895eaaa5426adc36697e744093cadd90a4d325ad 100644
|
| --- a/LayoutTests/http/tests/security/powerfulFeatureRestrictions/bluetooth-on-insecure-origin.html
|
| +++ b/LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html
|
| @@ -1,5 +1,5 @@
|
| <!DOCTYPE html>
|
| -<title>Request A Bluetooth Device On An Insecure Origin</title>
|
| +<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>
|
| @@ -9,10 +9,7 @@ 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.bluetooth.requestDevice({
|
| - filters: [{services: ['generic_access']}]
|
| - }),
|
| - 'SecurityError');
|
| - }, "Requires secure context before user gesture");
|
| + return assert_promise_rejects(navigator.storage.requestPersistent(), 'SecurityError');
|
| + }, "Requires secure context");
|
| }
|
| </script>
|
|
|