mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
21 lines
611 B
HTML
21 lines
611 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>KV Storage: should not work in non-secure contexts when included via a script element</title>
|
|
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
|
|
<script>
|
|
"use strict";
|
|
test(() => {
|
|
assert_false(self.isSecureContext, "This test must run in a non-secure context");
|
|
}, "Prerequisite check");
|
|
|
|
window.t = async_test("Check the events");
|
|
</script>
|
|
|
|
<script type="module"
|
|
src="std:kv-storage"
|
|
onload="t.step(() => { assert_unreached('load event fired'); })"
|
|
onerror="t.done()">
|
|
</script>
|