LibWeb/FileAPI: Implement aborting a FileReader read

This fixes a timeout for the included WPT test.
This commit is contained in:
Shannon Booth 2025-01-05 11:05:53 +13:00 committed by Andrew Kaster
commit 8e410f959c
Notes: github-actions[bot] 2025-01-30 21:26:29 +00:00
5 changed files with 153 additions and 8 deletions

View file

@ -0,0 +1,11 @@
Harness status: OK
Found 6 tests
6 Pass
Pass test FileReader InvalidStateError exception for readAsText
Pass test FileReader InvalidStateError exception for readAsDataURL
Pass test FileReader InvalidStateError exception for readAsArrayBuffer
Pass test FileReader InvalidStateError exception in onloadstart event for readAsArrayBuffer
Pass test FileReader no InvalidStateError exception in loadend event handler for readAsArrayBuffer
Pass test abort and restart in onloadstart event for readAsText