blob: 00f58d9d6ec141d82f5e5e0311c2b93d138b346b [file] [log] [blame]
<!DOCTYPE html>
<title>Request Durable Storage On An Insecure Origin</title>
<script src="/resources/testharness.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 {
test(function(test) {
assert_false('storage' in navigator,
'navigator.storage attribute has [SecureContext]');
}, 'Requires secure context');
}
</script>