зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1874334 - Add worker related fuzzing finding to OPFS crashtest suite; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D205574
This commit is contained in:
Родитель
fe3b09f3b6
Коммит
1a79df5a9b
|
@ -0,0 +1,8 @@
|
|||
<script>
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
await self.navigator.serviceWorker.register("sw1874334-2.js?318", { })
|
||||
await self.navigator.serviceWorker.register("sw1874334-2.js?363", { })
|
||||
await self.navigator.serviceWorker.register("sw1874334-2.js?87", { })
|
||||
await self.fetch("missing", {"headers": []})
|
||||
})
|
||||
</script>
|
|
@ -10,3 +10,4 @@ load 1841702.html
|
|||
HTTP load 1844619.html
|
||||
HTTP load 1858820.html
|
||||
load 1874334.html
|
||||
HTTP load 1874334-2.html
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
(async () => {
|
||||
let arr = new ArrayBuffer(43109)
|
||||
let blob = new Blob([arr, arr, arr, arr, arr])
|
||||
let req = new Request("missing", {"headers": []})
|
||||
let dir = await self.navigator.storage.getDirectory()
|
||||
let file = new File([blob, arr], "", { })
|
||||
let handle = await dir.getFileHandle("514600c6-596b-4676-ab0c-3e6f1e86759f", {"create": true})
|
||||
let wfs = await handle.createWritable({"keepExistingData": true})
|
||||
await handle.createWritable({"keepExistingData": true})
|
||||
try { await req.json(arr, {"headers": []}) } catch (e) {}
|
||||
try { await file.stream().pipeTo(wfs, { }) } catch (e) {}
|
||||
})()
|
Загрузка…
Ссылка в новой задаче