blob: b2f0abf8e0080637495989e0270955249fd0e2da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!doctype html>
<body>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
promise_test(async t => {
try {
await document.browsingTopics();
} catch (e) {
assert_equals(e.name, 'TypeError');
assert_equals(e.message, 'document.browsingTopics is not a function');
return;
}
assert_unreached("did not reject");
}, 'test document.browsingTopics() in insecure context');
</script>
</body>
|