Repository navigation
Acknowledge Playwright's directory listener before file selection - #13
Merged
Merged
Conversation
yo4e
marked this pull request as ready for review
October 20, 2026 07:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ubuntu WebKit can complete a directory selection and render the requested book while Playwright's
setInputFilesremains pending until the test times out. Repeated runs reproduced this even for the first selection on a fresh input. The Playwright implementation starts an asynchronousevaluateto register the input listener, then immediately issues the native selection command; listener registration is not acknowledged first. The same sequence remains in the official 1.64.1 source.Add a test-only preparation step for the pinned Playwright 1.61.1 package. It installs the listener through an awaited object handle containing the event promise, performs the native selection, then awaits the event and disposes the handle. Exact version and source-fragment guards reject an unexpected dependency change. The normal parser/viewer build does not contain this patch. Validation documentation describes the temporary patch and its removal criteria.
Local lint, strict typecheck, 95 Node tests and build pass. The actual chooser/edit/unchanged-reload scenario passes 10 WebKit repetitions with the patch. Final commit
c4ab4083b604f4019e39d96990ce506084ea9e80also passed all 24 local browser tests and three CLI sample validations. Ubuntu CI confirmed the guarded patch was applied and passed all static/unit/sample checks, 24 browser tests and five extra WebKit repetitions. No skipped tests, swallowed timeouts, synthetic completion events or automatic retries. Related to #9.