Skip to content

WebMCP: Implement tool name validation - #59676

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7744064
May 6, 2026
Merged

chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7744064

WebMCP: Implement tool name validation

296d54d
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-results succeeded May 6, 2026 in 25m 15s

Community-TC (pull_request)

Collect results for all tests affected by a pull request in chrome.

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-05-06T04:15:17.934Z
Resolved: 2026-05-06T04:20:20.750Z
Task Execution Time: 5 minutes, 2 seconds, 816 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: AZxoO-1qQQCrZx2gcPjl-g
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log
- public/results/checkrun.md
- public/results/wpt_report.json.gz
- public/results/wpt_screenshot.txt.gz

WPT Command: python3 ./wpt run --channel=dev --no-fail-on-unexpected --log-wptreport=../artifacts/wpt_report.json --log-wptscreenshot=../artifacts/wpt_screenshot.txt --affected base_head --log-mach-level=info --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2026-05-06 04:15:18.010Z] Task ID: AZxoO-1qQQCrZx2gcPjl-g
[taskcluster 2026-05-06 04:15:18.010Z] Worker ID: 4120994610754865929
[taskcluster 2026-05-06 04:15:18.010Z] Worker Group: us-east1-d
[taskcluster 2026-05-06 04:15:18.010Z] Worker Node Type: projects/757942385826/machineTypes/n2-standard-4
[taskcluster 2026-05-06 04:15:18.010Z] Worker Pool: proj-wpt/ci
[taskcluster 2026-05-06 04:15:18.010Z] Worker Version: 46.1.0
[taskcluster 2026-05-06 04:15:18.010Z] Public IP: 35.243.146.155
[taskcluster 2026-05-06 04:15:18.010Z] Hostname: proj-wpt-ci-dyiy-rbhrrwlnhaxz5ptcg

[taskcluster 2026-05-06 04:15:19.012Z] === Task Starting ===
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/01-locale-fix.sh ']'
+ . /etc/profile.d/01-locale-fix.sh
+++ /usr/bin/locale-check C.UTF-8
++ eval
+ for i in /etc/profile.d/*.sh
+ '[' -r /etc/profile.d/apps-bin-path.sh ']'
+ . /etc/profile.d/apps-bin-path.sh

...(396 lines hidden)...

Failed to read: session.screen0.defaultDeco
Setting default value
Failed to read: session.screen0.tab.placement
Setting default value
Failed to read: session.screen0.windowMenu
Setting default value
Failed to read: session.screen0.noFocusWhileTypingDelay
Setting default value
Failed to read: session.screen0.workspaces
Setting default value
Failed to read: session.screen0.edgeSnapThreshold
Setting default value
Failed to read: session.screen0.window.focus.alpha
Setting default value
Failed to read: session.screen0.window.unfocus.alpha
Setting default value
Failed to read: session.screen0.menu.alpha
Setting default value
Failed to read: session.screen0.menuDelay
Setting default value
Failed to read: session.screen0.tab.width
Setting default value
Failed to read: session.screen0.tooltipDelay
Setting default value
Failed to read: session.screen0.allowRemoteActions
Setting default value
Failed to read: session.screen0.clientMenu.usePixmap
Setting default value
Failed to read: session.screen0.tabs.usePixmap
Setting default value
Failed to read: session.screen0.tabs.maxOver
Setting default value
Failed to read: session.screen0.tabs.intitlebar
Setting default value
Failed to read: session.screen0.focusModel
Setting default value
Failed to read: session.screen0.tabFocusModel
Setting default value
Failed to read: session.screen0.focusNewWindows
Setting default value
Failed to read: session.screen0.focusSameHead
Setting default value
Failed to read: session.screen0.rowPlacementDirection
Setting default value
Failed to read: session.screen0.colPlacementDirection
Setting default value
Failed to read: session.screen0.windowPlacement
Setting default value
Failed to read: session.screen0.slit.acceptKdeDockapps
Setting default value
Failed to read: session.screen0.slit.autoHide
Setting default value
Failed to read: session.screen0.slit.maxOver
Setting default value
Failed to read: session.screen0.slit.placement
Setting default value
Failed to read: session.screen0.slit.alpha
Setting default value
Failed to read: session.screen0.slit.onhead
Setting default value
Failed to read: session.screen0.slit.layer
Setting default value
Failed to read: session.screen0.toolbar.autoHide
Setting default value
Failed to read: session.screen0.toolbar.maxOver
Setting default value
Failed to read: session.screen0.toolbar.visible
Setting default value
Failed to read: session.screen0.toolbar.alpha
Setting default value
Failed to read: session.screen0.toolbar.layer
Setting default value
Failed to read: session.screen0.toolbar.onhead
Setting default value
Failed to read: session.screen0.toolbar.placement
Setting default value
Failed to read: session.screen0.toolbar.height
Setting default value
Failed to read: session.screen0.iconbar.mode
Setting default value
Failed to read: session.screen0.iconbar.alignment
Setting default value
Failed to read: session.screen0.iconbar.iconWidth
Setting default value
Failed to read: session.screen0.iconbar.iconTextPadding
Setting default value
Failed to read: session.screen0.iconbar.usePixmap
Setting default value
Warning: could not load product 'firefox' for argument registration: No module named 'mozleak'
Warning: could not load product 'firefox_android' for argument registration: No module named 'mozrunner'
 0:00.00 INFO Set tests_root to /home/test/web-platform-tests
 0:00.00 INFO Set metadata_root to /home/test/web-platform-tests
 0:00.00 INFO Set manifest_update to True
 0:00.00 INFO Set manifest_download to True
 0:34.17 INFO Identified 1 affected tests
 0:34.17 INFO Installing browser
 0:34.23 INFO Downloading Chrome for Testing from https://storage.googleapis.com/chrome-for-testing-public/149.0.7815.2/linux64/chrome-linux64.zip
 0:37.78 INFO Downloading Mojo bindings from https://storage.googleapis.com/chrome-for-testing-public/149.0.7815.2/mojojs.zip
 0:37.82 INFO MojoJS enabled automatically (mojojs_path: /home/test/web-platform-tests/_venv3/mojojs/gen)
 0:37.84 INFO Download info for matching ChromeDriver version found.
 0:37.84 INFO Downloading ChromeDriver from https://storage.googleapis.com/chrome-for-testing-public/149.0.7815.2/linux64/chromedriver-linux64.zip
 0:38.14 INFO Automatically turning on experimental features
mem avail: 14438 of 15806 MiB (91.35%), swap free:    0 of    0 MiB ( 0.00%)
 0:47.62 INFO Installed font: Ahem.ttf
 0:48.57 wptserve INFO Starting http server on http://127.0.0.1:8000
 0:48.58 wptserve INFO Starting https server on https://127.0.0.1:8443
 0:48.66 wptserve INFO Starting http server on http://127.0.0.1:8002
 0:48.66 wptserve INFO Create socket on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:48.66 wptserve INFO Bind on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:48.66 wptserve INFO Listen on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:48.68 wptserve INFO Starting http server on http://127.0.0.1:8001
 0:48.68 wptserve INFO Starting http2 server on https://127.0.0.1:9000
 0:48.68 wptserve INFO Starting http server on http://127.0.0.1:8003
 0:48.69 wptserve INFO Starting https server on https://127.0.0.1:8446
 0:48.69 wptserve INFO Starting https server on https://127.0.0.1:8445
 0:48.70 wptserve INFO Starting https server on https://127.0.0.1:8444
 0:48.70 wptserve INFO Create socket on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:48.70 wptserve INFO Bind on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:48.70 wptserve INFO Listen on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:48.78 wptserve INFO Starting WebTransport over HTTP/3 server on 127.0.0.1:11000
 0:49.02 SUITE_START: web-platform-test - running 1 tests
 0:55.73 INFO Using 1 child processes
 0:55.73 INFO Starting WebDriver: /home/test/web-platform-tests/_venv3/bin/chrome/chromedriver --port=40433 --ignore-explicit-port --url-base=/ --enable-chrome-logs --disable-build-check
 0:55.76 INFO Got WebDriver port 42465
 0:55.85 pid:2838 Full command: /home/test/web-platform-tests/_venv3/bin/chrome/chromedriver --port=40433 --ignore-explicit-port --url-base=/ --enable-chrome-logs --disable-build-check
pid:2838 Starting ChromeDriver 149.0.7815.2 (fa84e89a708a70358b5e9b0dbf193c363b9d6f66-refs/branch-heads/7815@{#4}) on port 0
 0:55.85 pid:2838 Only local connections are allowed.
 0:55.85 pid:2838 Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
 0:55.85 pid:2838 ChromeDriver was started successfully on port 42465.
 0:55.85 INFO Webdriver started successfully.
 0:55.85 INFO Starting runner
 0:57.03 pid:2838 [2888:2888:0506/042011.078072:WARNING:sandbox/policy/linux/sandbox_linux.cc:404] InitializeSandbox() called with multiple threads in process gpu-process.
 0:57.04 pid:2838 [2888:2888:0506/042011.088140:WARNING:ui/gfx/linux/gbm_support_x11.cc:48] dri3 extension not supported.
 0:57.06 pid:2838 [1778041211.110][WARNING]: You are using an unsupported command-line switch: --disable-build-check. Please don't report bugs that cannot be reproduced with this switch removed.
Failed to read: session.screen0.titlebar.left
Setting default value
Failed to read: session.screen0.titlebar.right
Setting default value
 0:57.18 pid:2838 [2855:2855:0506/042011.229374:ERROR:dbus/object_proxy.cc:572] Failed to call method: org.freedesktop.DBus.Properties.GetAll: object_path= /org/freedesktop/UPower/devices/DisplayDevice: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
 0:57.18 pid:2838 [2855:2855:0506/042011.229421:WARNING:dbus/property.cc:174] GetAll request failed for: org.freedesktop.UPower.Device
 0:57.20 pid:2838 [2855:2855:0506/042011.254433:WARNING:ui/base/idle/idle_linux.cc:111] None of the known D-Bus ScreenSaver services could be used.
 0:57.30 TEST_START: /webmcp/imperative/register_tool_name_validation.https.window.html
 0:57.95 TEST_END: Test OK. Subtests passed 1/2. Unexpected 1
FAIL Invalid tool names throw InvalidStateError. - assert_throws_dom: Tool name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is invalid. function "() => {
        navigator.modelContext.registerTool({
          name: name,
          description: 'invalid name test',
          execute: async () => 'empty'
        });
      }" did not throw
    at Test.<anonymous> (https://web-platform.test:8443/webmcp/imperative/register_tool_name_validation.https.window.js:59:5)
    at Test.step (https://web-platform.test:8443/resources/testharness.js:2869:25)
    at test (https://web-platform.test:8443/resources/testharness.js:633:30)
    at https://web-platform.test:8443/webmcp/imperative/register_tool_name_validation.https.window.js:23:1

 0:57.95 INFO No more tests
 0:58.01 INFO Closing logging queue
 0:58.01 INFO queue closed
 0:58.07 SUITE_END

web-platform-test
~~~~~~~~~~~~~~~~~
Ran 3 checks (2 subtests, 1 tests)
Expected results: 2
Unexpected results: 1
  subtest: 1 (1 fail)

Error Summary
-------------
/webmcp/imperative/register_tool_name_validation.https.window.html
  FAIL Invalid tool names throw InvalidStateError. - assert_throws_dom: Tool name 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' is invalid. function "() => {
        navigator.modelContext.registerTool({
          name: name,
          description: 'invalid name test',
          execute: async () => 'empty'
        });
      }" did not throw
    at Test.<anonymous> (https://web-platform.test:8443/webmcp/imperative/register_tool_name_validation.https.window.js:59:5)
    at Test.step (https://web-platform.test:8443/resources/testharness.js:2869:25)
    at test (https://web-platform.test:8443/resources/testharness.js:633:30)
    at https://web-platform.test:8443/webmcp/imperative/register_tool_name_validation.https.window.js:23:1
 0:58.07 INFO Got 1 unexpected results, with 0 unexpected passes
 0:58.07 wptserve INFO Stopped http server on 127.0.0.1:8000
 0:58.07 wptserve INFO Stopped http server on 127.0.0.1:8001
 0:58.08 wptserve INFO Stopped http server on 127.0.0.1:8002
 0:58.09 wptserve INFO Stopped http server on 127.0.0.1:8003
 0:58.09 wptserve INFO Stopped http server on 127.0.0.1:8444
 0:58.09 wptserve INFO Stopped http server on 127.0.0.1:8445
 0:58.10 wptserve INFO Stopped http server on 127.0.0.1:8443
 0:58.10 wptserve INFO Stopped http server on 127.0.0.1:8446
 0:58.10 wptserve INFO Stopped http server on 127.0.0.1:9000
 0:58.10 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 0:58.53 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 0:58.53 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 0:58.57 INFO Removed font: Ahem.ttf
 0:58.59 INFO Closing logging queue
 0:58.59 INFO queue closed
 0:58.59 INFO Tolerating 1 unexpected results
[taskcluster 2026-05-06 04:20:18.698Z] === Task Finished ===
[taskcluster 2026-05-06 04:20:19.804Z] Successful task run with exit code: 0 completed in 301.794 seconds