summaryrefslogtreecommitdiffstats
path: root/dom/fs/test/crashtests/1874334.html
blob: 590025a60f44acb643e6304d53a254bd9031575a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>

async function stuff() {
    let arr = new ArrayBuffer(500000);
    let blob = new Blob([arr]);
    let file = new File([blob], "", { });

    let dir = await self.navigator.storage.getDirectory();
    let handle = await dir.getFileHandle("514600c6-596b-4676-ab0c-3e6f1e86759f", {"create": true});
    let wfs = await handle.createWritable({"keepExistingData": true});

    await file.stream().pipeTo(wfs);
};

document.addEventListener("DOMContentLoaded", stuff);
</script>