Bug 309446

Summary: FileSystemWritableFileStream: WriteParams members should be non-nullable per updated spec
Product: WebKit Reporter: usamanadeemparacha
Component: Website StorageAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: sihui_liu, usamanadeemparacha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

usamanadeemparacha
Reported 2026-03-08 04:34:19 PDT
The WHATWG File System spec has been updated to make the `size`, `position`, and `data` members of the `WriteParams` dictionary non-nullable. Previously these were marked as nullable (`?`), but the `write()` algorithm never handles null values. Making them non-nullable means passing null will now throw a TypeError at the WebIDL boundary, which is the correct and intended behavior. Spec change: https://github.com/whatwg/fs/pull/182 Related issue: https://github.com/whatwg/fs/issues/181 WPT tests: https://github.com/web-platform-tests/wpt/pull/58156 Please update the WebKit implementation so that passing null for `size`, `position`, or `data` in `WriteParams` throws a TypeError.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-15 04:35:11 PDT
usamanadeemparacha
Comment 2 2026-03-22 12:13:04 PDT
Hi any updates on the matter will be be helpful here, are you guys waiting for PR to be merged?
usamanadeemparacha
Comment 3 2026-03-22 12:13:43 PDT
Hi any updates on the matter will be be helpful here, are you guys waiting for PR to be merged?
usamanadeemparacha
Comment 4 2026-03-30 13:33:11 PDT
Hi its been really long and Im still waiting for the reply?
Note You need to log in before you can comment on or make changes to this bug.