Closed Bug 2078121 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63266 - [webmcp] Add WebMCP and ScriptTool executeTool() cancellation tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63266 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63266
Details from upstream follow.

mark a. foltz <mfoltz@chromium.org> wrote:

[webmcp] Add WebMCP and ScriptTool executeTool() cancellation tests

Adds Web Platform Tests and Actor ScriptTool browser tests covering
cancellation and early-abort scenarios during executeTool():

  • Imperative tool self-cancellation (sync and async caller signal abort)
  • Synchronous tool unregistration inside execute() followed by caller abort
  • Caller frame navigation and DOM detachment (toolcancel event verification)
  • Cross-origin and third-frame AbortController cancellation
  • Revoking exposedTo permission after getTools() and before executeTool()
  • Re-entrant (nested) executeTool() cancellation, target detachment, and
    unregistration
  • Pre-submission declarative tool unregistration (DOM removal, attribute
    removal, and target frame detachment) with -expected.txt for missing
    toolcancel event
  • Actor ExecutionEngine::CancelOngoingActions() during imperative,
    declarative, and re-entrant ScriptTool executions

Bug: 513147880, 565332588
Change-Id: I4116141e836306d6775cde17f1ca85925ac006d9
Reviewed-on: https://chromium-review.googlesource.com/8454102
WPT-Export-Revision: aeded4ad261f764576a6174492164896fe6fb12a

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 69 tests and 4 subtests

Status Summary

Firefox

OK : 10[GitHub] 58[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 : 1[GitHub] 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4[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]
FAIL : 54[GitHub] 140[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: 6
ERROR : 5[GitHub] 6[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]
NOTRUN : 1[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] 2[GitHub]

Chrome

OK : 18
PASS : 58
FAIL : 2

Safari

OK : 10
PASS : 1
FAIL : 54
TIMEOUT: 6
ERROR : 5
NOTRUN : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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: OK, 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: OK, 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: OK, Safari: TIMEOUT)
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.