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:
16
dom/fs/test/crashtests/1874334.html
Normal file
16
dom/fs/test/crashtests/1874334.html
Normal 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>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user