[wpt-sync] Sync PR 63798 - Built-In AI APIs: Promote and harden ResolverWithAbortSignal
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63798 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63798
Details from upstream follow.
Mike Wasserman <msw@chromium.org> wrote:
Built-In AI APIs: Promote and harden ResolverWithAbortSignal
Move ResolverWithAbortSignal to modules/ai/ and harden its Cleanup(),
OnAborted(), Resolve(), and Reject() handling.
Simplify RejectOnDestruction() in ai_utils.h.
Adopt in DecisionModel::decide(),
AIWritingAssistanceBase::measureInputUsage(), and
LanguageModel::measureContextUsage().Bug: 468104678, 424659255, 565849508
Change-Id: I4841ffe9fbc23dedfe4e6163403d40b758349104Reviewed-on: https://chromium-review.googlesource.com/8590307
WPT-Export-Revision: 724e60602c1f1dc2e1344484bdd7ff03e6034c89
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=106786
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 22 tests and 5 subtests
Status Summary
Firefox
OK : 1[GitHub] 22[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 : 5[GitHub] 70[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]
PRECONDITION_FAILED: 1
Chrome
OK : 1
PASS : 1
FAIL : 4
Safari
OK : 1
FAIL : 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /ai/summarizer/speed/summarizer-availability-available.tentative.https.window.html [wpt.fyi]
- Summarizer.availability() is available with speed preference:
FAIL - Summarizer.availability() returns available with supported speed preference options:
FAIL
- Summarizer.availability() is available with speed preference:
- /ai/summarizer/speed/summarizer-create-available.tentative.https.window.html [wpt.fyi]
- Summarizer.create() returns a valid object with speed preference:
FAIL - Summarizer.create() with speed preference notifies its monitor on downloadprogress:
FAIL - Summarizer.create() with speed preference configures supported attributes:
FAIL
- Summarizer.create() returns a valid object with speed preference:
- /ai/summarizer/speed/summarizer-measureInputUsage.tentative.https.window.html [wpt.fyi]
- Summarizer.measureInputUsage() with speed preference returns non-empty result within inputQuota:
FAIL
- Summarizer.measureInputUsage() with speed preference returns non-empty result within inputQuota:
- /ai/summarizer/speed/summarizer-summarize-concurrent.tentative.https.window.html [wpt.fyi]
- Multiple Summarizer.summarize() calls with speed preference and identical inputs are resolved successfully:
FAIL - Multiple Summarizer.summarize() calls with speed preference and divergent inputs are resolved successfully:
FAIL
- Multiple Summarizer.summarize() calls with speed preference and identical inputs are resolved successfully:
- /ai/summarizer/speed/summarizer-summarize-streaming-concurrent.tentative.https.window.html [wpt.fyi]
- Multiple Summarizer.summarizeStreaming() calls with speed preference and identical inputs are resolved successfully:
FAIL - Multiple Summarizer.summarizeStreaming() calls with speed preference and divergent inputs are resolved successfully:
FAIL
- Multiple Summarizer.summarizeStreaming() calls with speed preference and identical inputs are resolved successfully:
- /ai/summarizer/speed/summarizer-summarize-streaming.tentative.https.window.html [wpt.fyi]
- Simple Summarizer.summarizeStreaming() call with speed preference:
FAIL - Summarizer.summarizeStreaming() with speed preference fails after destroyed:
FAIL - Summarizer.summarizeStreaming() with speed preference returns a ReadableStream without any chunk on an empty input:
FAIL
- Simple Summarizer.summarizeStreaming() call with speed preference:
- /ai/summarizer/speed/summarizer-summarize.tentative.https.window.html [wpt.fyi]
- Summarizer.summarize() with speed preference and empty input returns empty text:
FAIL - Simple Summarizer.summarize() call with speed preference:
FAIL - Calling Summarizer.destroy() on speed preference session aborts calls to summarize and measureInputUsage:
FAIL
- Summarizer.summarize() with speed preference and empty input returns empty text:
- /ai/summarizer/summarizer-abort.tentative.https.window.html [wpt.fyi]
- Aborting Summarizer.create().:
FAIL(Chrome:PASS, Safari:FAIL) - Aborting Summarizer.summarize():
FAIL(Chrome:FAIL, Safari:FAIL) - Aborting Summarizer.summarizeStreaming():
FAIL(Chrome:FAIL, Safari:FAIL) - Aborting Summarizer.summarizeStreaming() after finished reading:
FAIL(Chrome:FAIL, Safari:FAIL) - Aborting Summarizer.measureInputUsage() and destroying on abort:
FAIL(Chrome:FAIL, Safari:FAIL)
- Aborting Summarizer.create().:
- /ai/summarizer/summarizer-availability-available.tentative.https.window.html [wpt.fyi]
- Summarizer.availability() is available with no options:
FAIL - Summarizer.availability() returns available with supported options:
FAIL - Summarizer.availability() returns unavailable for unsupported languages and create() rejects:
FAIL
- Summarizer.availability() is available with no options:
- /ai/summarizer/summarizer-availability.tentative.https.window.html [wpt.fyi]
- Summarizer.availability() is defined:
FAIL - Summarizer.availability() returns a valid value with no options:
FAIL - Summarizer.availability() returns a valid value with plausible options:
FAIL - Summarizer.availability() rejects when given invalid language tags:
FAIL
- Summarizer.availability() is defined:
- /ai/summarizer/summarizer-create-available.tentative.https.window.html [wpt.fyi]
- Summarizer.create() returns a valid object with default options:
FAIL - Summarizer.create() notifies its monitor on downloadprogress:
FAIL - Progress events are not emitted after aborted:
FAIL - Summarizer.sharedContext:
FAIL - Summarizer.type:
FAIL - Summarizer.format:
FAIL - Summarizer.length:
FAIL - Summarizer.expectedInputLanguages:
FAIL - Summarizer.expectedContextLanguages:
FAIL - Summarizer.outputLanguage:
FAIL - Creating Summarizer with malformed language string:
FAIL - Summarizer.create() canonicalizes language tags:
FAIL - Summarizer optional attributes return null:
FAIL
- Summarizer.create() returns a valid object with default options:
- /ai/summarizer/summarizer-create-user-activation.tentative.https.window.html [wpt.fyi]
- Create requires sticky user activation when availability is "downloadable":
FAIL
- Create requires sticky user activation when availability is "downloadable":
- /ai/summarizer/summarizer-create.tentative.https.window.html [wpt.fyi]
- Summarizer.create() is defined:
PRECONDITION_FAILED - If monitor throws an error, Summarizer.create() rejects with that error:
FAIL
- Summarizer.create() is defined:
- /ai/summarizer/summarizer-from-detached-iframe.tentative.https.window.html [wpt.fyi]
- Detaching iframe during Summarizer.create() should not leak memory:
FAIL - Summarizer.create() fails on a detached iframe:
FAIL - Summarizer.summarize() fails on a detached iframe:
FAIL - Summarizer.summarizeStreaming() fails on a detached iframe:
FAIL - Detaching iframe during Summarizer.summarize() should not leak memory:
FAIL
- Detaching iframe during Summarizer.create() should not leak memory:
- /ai/summarizer/summarizer-iframe.tentative.https.html [wpt.fyi]
- Throw a 'NotAllowedError' when creating Summarizer within cross-origin iframe:
FAIL - Summarizer can be created within cross-origin iframe with permission policy:
FAIL - Summarizer can be used within same-origin iframe:
FAIL - Summarizer is unavailable within cross-origin iframe:
FAIL - Summarizer is available within cross-origin iframe with permission policy:
FAIL - Summarizer is available within same-origin iframe:
FAIL
- Throw a 'NotAllowedError' when creating Summarizer within cross-origin iframe:
- /ai/summarizer/summarizer-measureInputUsage.tentative.https.window.html [wpt.fyi]
- Summarizer.measureInputUsage() returns non-empty result:
FAIL
- Summarizer.measureInputUsage() returns non-empty result:
- /ai/summarizer/summarizer-summarize-concurrent.tentative.https.window.html [wpt.fyi]
- Multiple Summarizer.summarize() calls with identical inputs are resolved successfully:
FAIL - Multiple Summarizer.summarize() calls with divergent inputs are resolved successfully:
FAIL
- Multiple Summarizer.summarize() calls with identical inputs are resolved successfully:
- /ai/summarizer/summarizer-summarize-post-abort.tentative.https.window.html [wpt.fyi]
- Summarize after aborting a previous summarize.:
FAIL
- Summarize after aborting a previous summarize.:
- /ai/summarizer/summarizer-summarize-streaming-concurrent.tentative.https.window.html [wpt.fyi]
- Multiple Summarizer.summarizeStreaming() calls with identical inputs are resolved successfully:
FAIL - Multiple Summarizer.summarizeStreaming() calls with divergent inputs are resolved successfully:
FAIL
- Multiple Summarizer.summarizeStreaming() calls with identical inputs are resolved successfully:
- /ai/summarizer/summarizer-summarize-streaming-post-abort.tentative.https.window.html [wpt.fyi]
- Summarize after aborting a previous summarizeStreaming.:
FAIL
- Summarize after aborting a previous summarizeStreaming.:
- /ai/summarizer/summarizer-summarize-streaming.tentative.https.window.html [wpt.fyi]
- Simple Summarizer.summarizeStreaming() call:
FAIL - Summarizer.summarizeStreaming() fails after destroyed:
FAIL - Summarizer.summarizeStreaming() returns a ReadableStream without any chunk on an empty input:
FAIL - Summarize Streaming API must continue even after GC has been performed.:
FAIL
- Simple Summarizer.summarizeStreaming() call:
- /ai/summarizer/summarizer-summarize.tentative.https.window.html [wpt.fyi]
- Summarizer.summarize() with an empty input returns an empty text:
FAIL - Summarizer.summarize() with a whitespace context returns an empty result:
FAIL - Calling Summarizer.destroy() aborts calls to summarize and measureInputUsage.:
FAIL - Summarizer.create()'s abort signal destroys its Summarizer after creation.:
FAIL - Simple Summarizer.summarize() call:
FAIL
- Summarizer.summarize() with an empty input returns an empty text:
Comment 4•25 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d55d7803cd4a
https://hg.mozilla.org/mozilla-central/rev/f43150d49093
Description
•