Skip to content

Commit c6038e6

Browse files
committed
Bug 1897564 - Add fuzzing test case to BucketFS crashtest suite. r=dom-storage-reviewers,janv
The test case is triggered on Linux and seems to always pass on Windows. Differential Revision: https://phabricator.services.mozilla.com/D227211
1 parent 05afefb commit c6038e6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

dom/fs/test/crashtests/1897564.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script>
2+
window.addEventListener("DOMContentLoaded", async () => {
3+
let dir = await self.navigator.storage.getDirectory()
4+
let a = await dir.getDirectoryHandle("478b0f5c-9abb-48d9-beb1-7e6aae189df7", {"create": true})
5+
let b = await a.getFileHandle("9e643bcf-9f9e-4b35-9fec-e3285020b150", {"create": true})
6+
let c = await b.createWritable({ })
7+
await c.write("a")
8+
await a.move(dir, "ó ²¾*")
9+
await a.removeEntry("9e643bcf-9f9e-4b35-9fec-e3285020b150", { })
10+
})
11+
</script>

dom/fs/test/crashtests/crashtests.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ HTTP load 1844619.html
1111
HTTP load 1858820.html
1212
load 1874334.html
1313
HTTP load 1874334-2.html
14+
# To be enabled together with the code changes
15+
# load 1897564.html

0 commit comments

Comments
 (0)