blob: a7ef103d00fe8f707043be171acfc4d206fee749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<iframe></iframe>
<script>
promise_test(async t => {
const iframe = document.querySelector('iframe');
const childSharedStorage = iframe.contentWindow.sharedStorage;
iframe.remove();
try {
await childSharedStorage.run("operation1");
} catch (e) {
assert_equals(e.name, 'InvalidAccessError');
return;
}
assert_unreached("did not reject");
}, 'run() when frame is detached');
</script>
</body>
|