[wpt-sync] Sync PR 60693 - [WebMCP] Tool retrieval getTools() should be sorted alphabetically.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox154 fixed)
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 60693 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/60693
Details from upstream follow.
François Beaufort <beaufort.francois@gmail.com> wrote:
[WebMCP] Tool retrieval getTools() should be sorted alphabetically.
Spec issue: https://github.com/webmachinelearning/webmcp/issues/206
Bug: 489045948
Change-Id: Iaab334c00480279abb518b4255c443432b16583e
Reviewed-on: https://chromium-review.googlesource.com/7921035
WPT-Export-Revision: 47800ce358521b73d1c7db35981d5969520825fa
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=8902003f106a28fc06faa935ccb5c1a6047190ed
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 32 tests and 1 subtests
Status Summary
Firefox
OK : 2[GitHub] 27[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 6
FAIL : 3[GitHub] 44[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 2
Chrome
OK : 2
PASS : 1
FAIL : 2
Safari
OK : 2
FAIL : 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /webmcp/imperative/exposedTo-cross-origin-child.https.html [wpt.fyi]:
SKIP - /webmcp/imperative/exposedTo-multiple-children.https.html [wpt.fyi]:
SKIP - /webmcp/imperative/permissions-policy.https.html [wpt.fyi]:
SKIP - /webmcp/imperative/detached-frame-executeTool.https.html [wpt.fyi]:
ERROR- executeTool() throws
InvalidStateErrorin detached frame:FAIL
- executeTool() throws
- /webmcp/imperative/detached-frame-getTools.https.html [wpt.fyi]
- getTools() throws
InvalidStateErrorin detached frame:FAIL
- getTools() throws
- /webmcp/imperative/detached-frame-registerTool.https.html [wpt.fyi]
- Regardless of whether Navigator's modelContext object has been allocatedits getter always returns null after the document has been detached:
FAIL - registerTool() throws
InvalidStateErrorin detached frame:FAIL
- Regardless of whether Navigator's modelContext object has been allocatedits getter always returns null after the document has been detached:
- /webmcp/imperative/document-domain-enabled.https.html [wpt.fyi]
- modelContext.registerTool throws SecurityError when document.domain is enabled:
FAIL - modelContext.getTools rejects with SecurityError when document.domain is enabled:
FAIL - modelContext.executeTool rejects with SecurityError when document.domain is enabled:
FAIL
- modelContext.registerTool throws SecurityError when document.domain is enabled:
- /webmcp/imperative/duplicate_tool_registration.https.window.html [wpt.fyi]
- duplicate tool registration is invalid.:
FAIL
- duplicate tool registration is invalid.:
- /webmcp/imperative/executeTool-abort.https.html [wpt.fyi]
- executeTool() rejects with AbortError when signal is aborted:
FAIL
- executeTool() rejects with AbortError when signal is aborted:
- /webmcp/imperative/executeTool-across-trees.https.html [wpt.fyi]
- executeTool() rejects when the tool is hosted in another frame tree:
FAIL
- executeTool() rejects when the tool is hosted in another frame tree:
- /webmcp/imperative/executeTool-caller-navigate-abort.https.html [wpt.fyi]
- executeTool() aborts target signal when the invoker document (same-origin) navigates away:
FAIL - executeTool() aborts target signal when the invoker document (cross-origin) navigates away:
FAIL
- executeTool() aborts target signal when the invoker document (same-origin) navigates away:
- /webmcp/imperative/executeTool-invalid-dictionary.https.html [wpt.fyi]
- executeTool() rejects with TypeError when the required 'origin' dictionary member is omitted:
FAIL
- executeTool() rejects with TypeError when the required 'origin' dictionary member is omitted:
- /webmcp/imperative/executeTool-target-detachment.https.html [wpt.fyi]
- executeTool() rejects when target frame is detached before execution:
FAIL - executeTool() rejects when target frame is detached mid-execution:
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
- 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
- executeTool() rejects when parent frame attempts unauthorized execution of cross-origin iframe tool:
- /webmcp/imperative/exposedTo-defaults-cross-origin.https.html [wpt.fyi]
- Parent tool with no exposedTo array is not visible to cross-origin iframe:
FAIL - Parent tool with empty exposedTo array is not visible to cross-origin iframe:
FAIL - Cross-origin iframe tool with default exposure is not visible to parent:
FAIL - Cross-origin iframe tool with empty exposedTo array is not visible to parent:
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 - Parent tool with empty
exposedToarray is visible to same-origin iframe:FAIL - Same-origin iframe tool with default exposure is visible to parent:
FAIL - Same-origin iframe tool with empty exposedTo array is visible to parent:
FAIL
- Parent tool with missing
- /webmcp/imperative/exposedTo-invalid-origins.https.html [wpt.fyi]
- registerTool() throws SecurityError for invalid or non-potentially-trustworthy origins in exposedTo:
FAIL - registerTool() does not throw for invalid exposedTo, if aborted signal is passed in:
FAIL
- registerTool() throws SecurityError for invalid or non-potentially-trustworthy origins in exposedTo:
- /webmcp/imperative/exposedTo-window-open.https.html [wpt.fyi]
- Tools are scoped to a frame tree, and are not exposed across opener boundaries.:
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:FAIL, 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/getTools.https.html [wpt.fyi]
- getTools should return all tools sorted in lexicographical order:
FAIL(Chrome:FAIL, Safari:FAIL)
- getTools should return all tools sorted in lexicographical order:
- /webmcp/imperative/model_context.https.window.html [wpt.fyi]
- document.modelContext instanceof ModelContext:
FAIL
- document.modelContext instanceof ModelContext:
- /webmcp/imperative/opaque-origin-tools.https.html [wpt.fyi]:
ERROR- An opaque origin document can register but not execute its own tools:
FAIL
- An opaque origin document can register but not execute its own tools:
- /webmcp/imperative/register-tool-title.https.html [wpt.fyi]
- Tool title is preserved when provided:
FAIL - Missing tool title in registration is exposed as empty string:
FAIL - Tool title with unpaired surrogate is fixed up by USVString:
FAIL
- Tool title is preserved when provided:
- /webmcp/imperative/register_tool_name_validation.https.window.html [wpt.fyi]
- Valid tool names are accepted.:
FAIL - Invalid tool names throw InvalidStateError.:
FAIL
- Valid tool names are accepted.:
- /webmcp/imperative/register_tool_no_schema.https.window.html [wpt.fyi]
- register tool with only required params:
FAIL
- register tool with only required params:
- /webmcp/imperative/register_tool_with_empty_annotation.https.window.html [wpt.fyi]
- register tool with empty annotations:
FAIL
- register tool with empty annotations:
- /webmcp/imperative/register_tool_with_schema.https.window.html [wpt.fyi]
- register and unregister script tool:
FAIL - registerTool succeeds when inputSchema.toJSON() returns 'undefined':
FAIL
- register and unregister script tool:
- /webmcp/imperative/same-origin-iframe-registerTool-regression.https.html [wpt.fyi]
- registerTool() does not throw in connected same-origin iframe navigated away of about:blank:
FAIL
- registerTool() does not throw in connected same-origin iframe navigated away of about:blank:
- /webmcp/imperative/unregister-during-executeTool.https.html [wpt.fyi]
- Pending executeTool() Promise is rejected when the target cross-origin tool is unregistered:
FAIL
- Pending executeTool() Promise is rejected when the target cross-origin tool is unregistered:
Tests Disabled in Gecko Infrastructure
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9e724c3debee
https://hg.mozilla.org/mozilla-central/rev/46c3622ed05e
Description
•