Repository navigation
Track each waitForToolsUntil() call separately - #400
Merged
Merged
Conversation
Replace the set of pending tool readiness promises with a count of pending waitForToolsUntil() calls. Each call stops keeping the Document not ready when its promise settles or when its own timeout expires, whichever happens first, so passing the same promise twice counts as two calls, like ExtendableEvent.waitUntil().
beaufortfrancois
suggested changes
Dec 1, 2026
beaufortfrancois
left a comment
Collaborator
There was a problem hiding this comment.
LGTM modulo nits:
- The Chromium link points to the internal chromium-review.git.corp.google.com host. Could you switch it to the public URL: https://chromium-review.googlesource.com/c/chromium/src/+/8839362
- Would be good to have WPT coverage for the per-call behavior.
Collaborator
Author
There's no web API to read the ready state right now so no way to check this in a WPT. It'll be possible once we add the toolChange event for this state, we can add a WPT then. |
github-actions Bot
added a commit
that referenced
this pull request
Dec 1, 2026
SHA: f23f4c2 Reason: push, by khushalsagar Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Aligning with the implementation at crrev/c/8839362.
Preview | Diff