[wpt-sync] Sync PR 60158 - WebMCP: Expose document.modelContext
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox153 fixed)
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 60158 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/60158
Details from upstream follow.
Dominic Farolino <dom@chromium.org> wrote:
WebMCP: Expose document.modelContext
Per https://github.com/webmachinelearning/webmcp/issues/173 and
https://github.com/w3ctag/design-reviews/issues/1231#issuecomment-4502765330,
we're movingmodelContexttodocumentfromnavigator. This CL does
that, but keepsnavigatorexposure around for a bit and dispatches a
console warning when it is used.This CL also updates all web platform tests to use
document.modelContext. There might be other lingering tests elsewhere,
but we can update those when we fully remove the API.R=mfoltz
Bug: 489045948
Change-Id: I2005719574b78367199c0a87f94f3577b8039f15
Reviewed-on: https://chromium-review.googlesource.com/7867800
WPT-Export-Revision: 055bd1543215fdd63b64283c93711a53faf275fc
| Assignee | ||
Comment 1•6 months ago
|
||
PR 60158 applied with additional changes from upstream: 2f79718126841d68bf361edc9318123d82013ed7
| Assignee | ||
Comment 2•6 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=b0544a14187ca4e9b6a879279e6b9cf6ba159289
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 3•6 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 31 tests and 1 subtests
Status Summary
Firefox
OK : 25[GitHub] 26[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 : 38[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] 42[GitHub]
TIMEOUT: 6
ERROR : 2
NOTRUN : 1
Chrome
OK : 24
PASS : 7
FAIL : 41
TIMEOUT: 6
ERROR : 3
NOTRUN : 1
Safari
OK : 25
PASS : 6
FAIL : 42
TIMEOUT: 6
ERROR : 2
NOTRUN : 1
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[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT)- Parent exposes tool to cross-origin child:
FAIL(Chrome:FAIL, Safari:FAIL) - Cross-origin child exposes tool to parent:
FAIL(Chrome:FAIL, Safari:FAIL) - Parent exposes tool to origin that is neither its own nor its iframe's:
FAIL(Chrome:FAIL, Safari:FAIL) - Iframe exposes tool to origin that is neither its own nor its parent's:
FAIL(Chrome:FAIL, Safari:FAIL) - Cross-origin iframe without permissions policy does not receive toolchange event even if exposed to it:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)
- Parent exposes tool to cross-origin child:
- /webmcp/imperative/exposedTo-multiple-children.https.html [wpt.fyi]:
SKIP[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT)- Multi-origin setup with mixed exposure lists:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)
- Multi-origin setup with mixed exposure lists:
- /webmcp/imperative/permissions-policy.https.html [wpt.fyi]:
SKIP[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT)- registerTool() throws in iframe, after navigation to an origin not covered by permissions policy:
FAIL(Chrome:FAIL, Safari:FAIL) - getTools() throws NotAllowedError in iframe when permissions policy is disabled:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - executeTool() throws NotAllowedError in iframe when permissions policy is disabled:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- registerTool() throws in iframe, after navigation to an origin not covered by permissions policy:
- /webmcp/declarative/getTools-declarative-schema.https.html [wpt.fyi]
- Test that getTools() returns the correct inputSchema for a declarative tool:
FAIL(Chrome:FAIL, Safari:FAIL)
- Test that getTools() returns the correct inputSchema for a declarative tool:
- /webmcp/declarative/toolchange-on-control-add-remove.https.html [wpt.fyi]
- Test that toolchange event fires when controls are added or removed:
FAIL(Chrome:FAIL, Safari:FAIL)
- Test that toolchange event fires when controls are added or removed:
- /webmcp/declarative/toolchange-on-name-change.https.html [wpt.fyi]
- Test that toolchange event fires on various mutations of form controls:
FAIL(Chrome:FAIL, Safari:FAIL)
- Test that toolchange event fires on various mutations of form controls:
- /webmcp/imperative/detached-frame-executeTool.https.html [wpt.fyi]:
ERROR(Chrome:ERROR, Safari:ERROR)- executeTool() throws
InvalidStateErrorin detached frame:FAIL(Chrome:FAIL, Safari:FAIL)
- executeTool() throws
- /webmcp/imperative/detached-frame-getTools.https.html [wpt.fyi]
- getTools() throws
InvalidStateErrorin detached frame:FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL) - registerTool() throws
InvalidStateErrorin detached frame:FAIL(Chrome:FAIL, Safari:FAIL)
- Regardless of whether Navigator's modelContext object has been allocatedits getter always returns null after the document has been detached:
- /webmcp/imperative/duplicate_tool_registration.https.window.html [wpt.fyi]
- duplicate tool registration is invalid.:
FAIL(Chrome:FAIL, Safari:FAIL)
- duplicate tool registration is invalid.:
- /webmcp/imperative/executeTool-abort.https.html [wpt.fyi]
- executeTool() rejects with AbortError when signal is aborted:
FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL) - executeTool() aborts target signal when the invoker document (cross-origin) navigates away:
FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL) - executeTool() rejects when target frame is detached mid-execution:
FAIL(Chrome:FAIL, 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:FAIL, 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:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL) - Parent tool with empty exposedTo array is not visible to cross-origin iframe:
FAIL(Chrome:FAIL, Safari:FAIL) - Cross-origin iframe tool with default exposure is not visible to parent:
FAIL(Chrome:FAIL, Safari:FAIL) - Cross-origin iframe tool with empty exposedTo array is not visible to parent:
FAIL(Chrome:FAIL, 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:FAIL, Safari:FAIL) - Parent tool with empty
exposedToarray is visible to same-origin iframe:FAIL(Chrome:FAIL, Safari:FAIL) - Same-origin iframe tool with default exposure is visible to parent:
FAIL(Chrome:FAIL, Safari:FAIL) - Same-origin iframe tool with empty exposedTo array is visible to parent:
FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL) - registerTool() does not throw for invalid exposedTo, if aborted signal is passed in:
FAIL(Chrome:PASS, Safari: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(Chrome:FAIL, Safari:FAIL)
- Tools are scoped to a frame tree, and are not exposed across opener boundaries.:
- /webmcp/imperative/model_context.https.window.html [wpt.fyi]
- document.modelContext instanceof ModelContext:
FAIL(Chrome:FAIL, Safari:FAIL)
- document.modelContext instanceof ModelContext:
- /webmcp/imperative/opaque-origin-tools.https.html [wpt.fyi]:
ERROR(Chrome:ERROR, Safari:ERROR)- An opaque origin document can register but not execute its own tools:
FAIL(Chrome:FAIL, Safari:FAIL)
- An opaque origin document can register but not execute its own tools:
- /webmcp/imperative/register_tool_name_validation.https.window.html [wpt.fyi]
- Valid tool names are accepted.:
FAIL(Chrome:FAIL, Safari:FAIL) - Invalid tool names throw InvalidStateError.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Valid tool names are accepted.:
- /webmcp/imperative/register_tool_no_schema.https.window.html [wpt.fyi]
- register tool with only required params:
FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL)
- register tool with empty annotations:
- /webmcp/imperative/register_tool_with_schema.https.window.html [wpt.fyi]
- register and unregister script tool:
FAIL(Chrome:FAIL, Safari:FAIL) - registerTool succeeds when inputSchema.toJSON() returns 'undefined':
FAIL(Chrome:FAIL, Safari: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(Chrome:FAIL, Safari:FAIL)
- Pending executeTool() Promise is rejected when the target cross-origin tool is unregistered:
Tests Disabled in Gecko Infrastructure
- /webmcp/imperative/exposedTo-cross-origin-child.https.html [wpt.fyi]:
SKIP[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT) - /webmcp/imperative/exposedTo-multiple-children.https.html [wpt.fyi]:
SKIP[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT) - /webmcp/imperative/permissions-policy.https.html [wpt.fyi]:
SKIP[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],TIMEOUT[GitHub] (Chrome:TIMEOUT, Safari:TIMEOUT)
Comment 5•6 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a274b09e0349
https://hg.mozilla.org/mozilla-central/rev/098fcf7025d6
Description
•