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

Side by Side Diff: LayoutTests/http/tests/security/powerfulFeatureRestrictions/durable-storage-on-insecure-origin.html

Issue 1154573005: Expose Durable Storage API to script (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: just reset the results Created 5 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Request A Bluetooth Device On An Insecure Origin</title> 2 <title>Request Durable Storage On An Insecure Origin</title>
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharness-helpers.js"></script> 4 <script src="/resources/testharness-helpers.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="/resources/get-host-info.js"></script> 6 <script src="/resources/get-host-info.js"></script>
7 <script> 7 <script>
8 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { 8 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
9 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.p athname; 9 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.p athname;
10 } else { 10 } else {
11 promise_test(function() { 11 promise_test(function() {
12 return assert_promise_rejects(navigator.bluetooth.requestDevice({ 12 return assert_promise_rejects(navigator.storage.requestPersistent(), 'Se curityError');
13 filters: [{services: ['generic_access']}] 13 }, "Requires secure context");
14 }),
15 'SecurityError');
16 }, "Requires secure context before user gesture");
17 } 14 }
18 </script> 15 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698