Skip to content

Fix stale requestFileHandles() call in Cross-Origin Storage docs - #27585

Merged
sbc100 merged 1 commit into
mainfrom
fix-request-file-handle-singular
Aug 21, 2026
Merged

Fix stale requestFileHandles() call in Cross-Origin Storage docs#27585
sbc100 merged 1 commit into
mainfrom
fix-request-file-handle-singular

Conversation

@tomayac

@tomayac tomayac commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

The instantiateWasm example in site/source/docs/compiling/CrossOriginStorage.rst called navigator.crossOriginStorage.requestFileHandles(cosHash) with a bare hash and then treated the result as a single FileSystemFileHandle (.then(handle => handle.getFile())).

The API is requestFileHandle() (singular). The plural form was an early draft that took an array of hashes and returned an array of handles; it was removed in favor of the singular form. The rest of this document — and the actual implementation in src/preamble.js — already use the singular form, so this example was the only stale call site.

Docs-only, one line.

The instantiateWasm example called requestFileHandles(cosHash) with a
bare hash and then treated the result as a single FileSystemFileHandle.
The API is requestFileHandle() (singular), as already used elsewhere in
this document and in src/preamble.js.
@sbc100
sbc100 enabled auto-merge (squash) August 21, 2026 19:41
@sbc100
sbc100 disabled auto-merge August 21, 2026 19:41
@sbc100
sbc100 merged commit a16643b into main Aug 21, 2026
46 of 48 checks passed
@sbc100
sbc100 deleted the fix-request-file-handle-singular branch August 21, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants