blob: 098fe83b1f8e678b2625de1cd2da5df3c708d9dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<title>Child context test(s)</title>
<head>
<script src="/resources/testharness.js"></script>
</head>
<body>
<div id="log"></div>
<script>
window.addEventListener('load', async () => {
const dir = await navigator.storage.getDirectory();
const opts = { create: true };
const file = await dir.getFileHandle('funky-file-handle', opts);
const writable = await file.createWritable({});
window.close();
});
</script>
</body>
</html>
|