Bug 1874334 - Add fuzzing finding to OPFS crashtest suite. r=dom-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D204779
This commit is contained in:
Jari Jalkanen
2024-03-27 12:47:14 +00:00
parent 7174aa5ff6
commit a25762c862
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,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>

View File

@@ -1,6 +1,7 @@
# StorageManager isn't enabled on Android
defaults skip-if(Android) pref(dom.fs.enabled,true) pref(dom.fs.writable_file_stream.enabled,true)
# Most of the issues here are reproducible only with --verify
load 1798773.html
load 1800470.html
load 1809759.html
@@ -8,3 +9,4 @@ load 1816710.html
load 1841702.html
HTTP load 1844619.html
HTTP load 1858820.html
load 1874334.html