[wpt-sync] Sync PR 63332 - [webmcp] Use camelCase and Promise.withResolvers() in WebMCP WPTs
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63332 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63332
Details from upstream follow.
mark a. foltz <mfoltz@chromium.org> wrote:
[webmcp] Use camelCase and Promise.withResolvers() in WebMCP WPTs
Converts snake_case variable and helper names to camelCase and replaces
manual Promise construction with Promise.withResolvers() across WebMCP
imperative and declarative WPTs.Bug: 565332588
Change-Id: I939156d5081acc6b463636642472e7538c72c169
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8508224
Commit-Queue: Mark Foltz \<mfoltz@chromium.org>
Reviewed-by: Fr \<beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1712844}
| Assignee | ||
Comment 1•1 month ago
|
||
PR 63332 applied with additional changes from upstream: 54b3dc579789163e868117bc957235999b348953
| Assignee | ||
Comment 2•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=101310
| Assignee | ||
Comment 3•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 15 tests and 4 subtests
Status Summary
Firefox
OK : 8
FAIL : 45
TIMEOUT: 6
ERROR : 4
NOTRUN : 2
Chrome
OK : 15
PASS : 48
FAIL : 2
Safari
OK : 8
FAIL : 45
TIMEOUT: 6
ERROR : 4
NOTRUN : 2
Links
Details
New Tests That Don't Pass
- /webmcp/declarative/unregister-during-executeTool.https.html [wpt.fyi]
- Pending executeTool() Promise resolves successfully when target declarative tool is unregistered via DOM removal:
FAIL(Chrome:PASS, Safari:FAIL) - Pending executeTool() Promise resolves successfully when target declarative tool is unregistered via attribute removal:
FAIL(Chrome:PASS, Safari:FAIL) - Pre-submission DOM removal of declarative tool cancels pending executeTool() and fires toolcancel:
FAIL(Chrome:FAIL, Safari:FAIL) - Pre-submission attribute removal of declarative tool cancels pending executeTool() and fires toolcancel:
FAIL(Chrome:FAIL, Safari:FAIL) - Target frame detachment during pending declarative executeTool() rejects caller promise:
FAIL(Chrome:PASS, Safari:FAIL)
- Pending executeTool() Promise resolves successfully when target declarative tool is unregistered via DOM removal:
- /webmcp/imperative/executeTool-abort.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- executeTool() provides a non-aborted default AbortSignal when called without options:
FAIL(Chrome:PASS, Safari:FAIL) - caller abort propagates to tool callback options.signal:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() with already-aborted tool synchronously rejects:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() promise remains rejected even if tool callback resolves after abort:
FAIL(Chrome:PASS, Safari:FAIL) - concurrent executions of the same tool have independent AbortSignals:
FAIL(Chrome:PASS, Safari:FAIL) - tool synchronously self-cancelling via caller AbortSignal aborts options.signal and fires toolcancel:
FAIL(Chrome:PASS, Safari:FAIL) - tool asynchronously self-cancelling via caller AbortSignal aborts options.signal and fires toolcancel:
FAIL(Chrome:PASS, Safari:FAIL)
- executeTool() provides a non-aborted default AbortSignal when called without options:
- /webmcp/imperative/executeTool-caller-navigate-abort.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- executeTool() aborts target signal and fires toolcancel when the invoker document (same-origin) navigates away:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() aborts target signal and fires toolcancel when the invoker frame (same-origin) is detached from the DOM:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() aborts target signal and fires toolcancel when the invoker document (cross-origin) navigates away:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() aborts target signal and fires toolcancel when the invoker frame (cross-origin) is detached from the DOM:
FAIL(Chrome:PASS, Safari:FAIL)
- executeTool() aborts target signal and fires toolcancel when the invoker document (same-origin) navigates away:
- /webmcp/imperative/executeTool-signal-cross-origin.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- caller abort in parent document propagates to options.signal in cross-origin iframe tool:
FAIL(Chrome:PASS, Safari:FAIL) - caller abort in cross-origin iframe propagates to options.signal in parent document tool:
FAIL(Chrome:PASS, Safari:FAIL) - other frame aborting an AbortController passed to executeTool() cancels target execution and fires toolcancel:
FAIL(Chrome:PASS, Safari:FAIL)
- caller abort in parent document propagates to options.signal in cross-origin iframe tool:
- /webmcp/imperative/executeTool-target-detachment.https.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:ERROR)- executeTool() rejects when target frame is detached before execution:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() rejects when target frame is detached mid-execution:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() rejects cleanly when tool callback synchronously detaches its own frame:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() abort cleanly handles synchronous frame detachment inside options.signal abort listener:
FAIL(Chrome:PASS, Safari:FAIL)
- executeTool() rejects when target frame is detached before execution:
- /webmcp/imperative/executeTool-target-navigation.https.html [wpt.fyi]
- executeTool() rejects when target document navigates away:
FAIL(Chrome:PASS, Safari:FAIL)
- executeTool() rejects when target document navigates away:
- /webmcp/imperative/executeTool-unauthorized-origin.https.html [wpt.fyi]
- executeTool() rejects when parent frame attempts unauthorized execution of cross-origin iframe tool:
FAIL(Chrome:PASS, Safari:FAIL)
- executeTool() rejects when parent frame attempts unauthorized execution of cross-origin iframe tool:
- /webmcp/imperative/exposedTo-cross-origin-child.https.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:TIMEOUT)- Parent exposes tool to cross-origin child:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin child exposes tool to parent:
FAIL(Chrome:PASS, Safari:FAIL) - Parent exposes tool to origin that is neither its own nor its iframe's:
FAIL(Chrome:PASS, Safari:FAIL) - Iframe exposes tool to origin that is neither its own nor its parent's:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin iframe without permissions policy does not receive toolchange event even if exposed to it:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT)
- Parent exposes tool to cross-origin child:
- /webmcp/imperative/exposedTo-defaults-cross-origin.https.html [wpt.fyi]
- Parent tool with no exposedTo array is not visible to cross-origin iframe:
FAIL(Chrome:PASS, Safari:FAIL) - Parent tool with empty exposedTo array is not visible to cross-origin iframe:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin iframe tool with default exposure is not visible to parent:
FAIL(Chrome:PASS, Safari:FAIL) - Cross-origin iframe tool with empty exposedTo array is not visible to parent:
FAIL(Chrome:PASS, Safari:FAIL)
- Parent tool with no exposedTo array is not visible to cross-origin iframe:
- /webmcp/imperative/exposedTo-defaults-same-origin.https.html [wpt.fyi]
- Parent tool with missing
exposedToarray is visible to same-origin iframe:FAIL(Chrome:PASS, Safari:FAIL) - Parent tool with empty
exposedToarray is visible to same-origin iframe:FAIL(Chrome:PASS, Safari:FAIL) - Same-origin iframe tool with default exposure is visible to parent:
FAIL(Chrome:PASS, Safari:FAIL) - Same-origin iframe tool with empty exposedTo array is visible to parent:
FAIL(Chrome:PASS, Safari:FAIL)
- Parent tool with missing
- /webmcp/imperative/exposedTo-multiple-children.https.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:TIMEOUT)- Multi-origin setup with mixed exposure lists:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT)
- Multi-origin setup with mixed exposure lists:
- /webmcp/imperative/exposedTo-window-open.https.html [wpt.fyi]
- Tools are scoped to a frame tree, and are not exposed across opener boundaries.:
FAIL(Chrome:PASS, Safari:FAIL)
- Tools are scoped to a frame tree, and are not exposed across opener boundaries.:
- /webmcp/imperative/getTools-filtering.https.html [wpt.fyi]
- getTools() correctly filters returned tools by fromOrigins origins while preserving same-origin tools:
FAIL(Chrome:PASS, Safari:FAIL) - getTools() rejects with SecurityError if an insecure origin is supplied in fromOrigins:
FAIL(Chrome:PASS, Safari:FAIL)
- getTools() correctly filters returned tools by fromOrigins origins while preserving same-origin tools:
- /webmcp/imperative/permissions-policy.https.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:TIMEOUT)- registerTool() rejects in iframe, after navigation to an origin not covered by permissions policy:
FAIL(Chrome:PASS, Safari:FAIL) - getTools() throws NotAllowedError in iframe when permissions policy is disabled:
TIMEOUT(Chrome:PASS, Safari:TIMEOUT) - executeTool() throws NotAllowedError in iframe when permissions policy is disabled:
NOTRUN(Chrome:PASS, Safari:NOTRUN) - executeTool() rejects when target frame revokes exposedTo permission after getTools():
NOTRUN(Chrome:PASS, Safari:NOTRUN)
- registerTool() rejects in iframe, after navigation to an origin not covered by permissions policy:
- /webmcp/imperative/unregister-during-executeTool.https.html [wpt.fyi]
- Pending executeTool() Promise resolves successfully when the target cross-origin tool is unregistered mid-execution:
FAIL(Chrome:PASS, Safari:FAIL) - Pending executeTool() Promise resolves successfully when target same-document tool is unregistered mid-execution:
FAIL(Chrome:PASS, Safari:FAIL) - executeTool() cancellation propagates to options.signal even when tool synchronously unregistered itself inside execute():
FAIL(Chrome:PASS, Safari:FAIL) - unregistering both outer and inner imperative tools during re-entrant executeTool() allows in-flight executions to settle:
FAIL(Chrome:PASS, Safari:FAIL)
- Pending executeTool() Promise resolves successfully when the target cross-origin tool is unregistered mid-execution:
Comment 5•1 month ago
|
||
| bugherder | ||
Description
•