Skip to content

Fire toolactivated after invoking execute - #371

Open
beaufortfrancois wants to merge 1 commit into
webmachinelearning:mainfrom
beaufortfrancois:toolactivated-after-execute
Open

beaufortfrancois wants to merge 1 commit into
webmachinelearning:mainfrom
beaufortfrancois:toolactivated-after-execute

Conversation

@beaufortfrancois

@beaufortfrancois beaufortfrancois commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Fires the toolactivated event after invoking the tool's execute callback, so listeners observe the tool's synchronous effects (e.g. a filled-in declarative form). This matches Chromium and WPT (executeTool-abort.https.html).

No explicit fully active guard is needed: if execute detaches the document, DOM's inner invoke already skips listeners when the target's relevant global object's associated Document is not fully active, matching executeTool-detach-toolactivated.https.html.

Fixes #332


Preview | Diff

Fires the toolactivated event after invoking the tool's execute callback,
so listeners observe the tool's synchronous effects. This matches
Chromium and WPT.

Fixes webmachinelearning#332
@domfarolino

Copy link
Copy Markdown
Collaborator

@sjdallst2, do you want to take a first pass at this PR?

This branch has not been deployed

No deployments
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.

Fire toolactivated after invoking execute

2 participants