Closed Bug 2023362 Opened 8 months ago Closed 7 months ago

[wpt-sync] Sync PR 58493 - Prompt API: Reject on invalid constraints and prefix conflicts

Categories

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

task

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Mike Wasserman <msw@chromium.org> wrote:

Prompt API: Reject on invalid constraints and prefix conflicts

Surface kInvalidConstraint via new mojom Error enum.
Use this as the custom_reason for StreamingResponder disconnect.
Bubble cancellation up via Blink ModelStreamingResponseStatus.
Add unit tests and WPTs with basic Echo regex prefix checks.

Bug: 391919456, 434766400, 454698388, 488433627
Change-Id: Ie3a918c238ed02b40334a4228690d7031310cd23
Reviewed-on: https://chromium-review.googlesource.com/7654881
WPT-Export-Revision: 3a6e0b985ccb9d706abc9a78e32dbf6f900193ae

CI Results

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

Total 28 tests and 42 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-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL : 9[GitHub] 125[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-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
TIMEOUT: 1
ERROR : 1
NOTRUN : 8

Chrome

TIMEOUT: 4
NOTRUN : 7

Safari

OK : 2
FAIL : 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.