rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.86k stars 1.08k forks source link

showOpenFilePicker missing? #3799

Open daxpedda opened 10 months ago

daxpedda commented 10 months ago

Discussed in https://github.com/rustwasm/wasm-bindgen/discussions/3796

Originally posted by **maurerdietmar** January 19, 2024 Seems that File system IDLs are already available, but I cannot find https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker ?

AFAICS the whole File System Access proposal is missing in web-sys, happy to review a PR adding it.

maurerdietmar commented 10 months ago

I just tried to add the "File System Access" webidl, but then I found:

https://github.com/rustwasm/wasm-bindgen/blob/main/crates/web-sys/webidls/enabled/FileSystemAccess.webidl

But this is not:

https://wicg.github.io/file-system-access/#idl-index

Sorry, but I am confused. Maybe you can give me a hint?

maurerdietmar commented 10 months ago

The existing "FileSystemAccess.webidl" contains the IDL from:

https://fs.spec.whatwg.org/#idl-index

daxpedda commented 10 months ago

Feel free to rename any files as long as it doesn't cause any breaking changes.