tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit bdbf10285210a6d3b6f5de62033d22e6441291f6
parent 12ef9a692bf22baeab3f7601d2c07a0030fd2774
Author: Isaac Ahouma <iahouma@google.com>
Date:   Thu, 11 Dec 2025 09:26:41 +0000

Bug 2004820 [wpt PR 56576] - [Prompt API] Remove the "ai_relax_user_activation" virtual test suite., a=testonly

Automatic update from web-platform-tests
[Prompt API] Remove the "ai_relax_user_activation" virtual test suite.

This suite tested Built-In AI APIs with the optional
AIRelaxUserActivationReqs feature flag enabled. However, this is is no
longer needed since the feature is now enabled by default.

Change-Id: I351f5189628fd59363dc0a32fc17e07086311a60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7229281
Commit-Queue: Isaac Ahouma <iahouma@google.com>
Reviewed-by: Mike Wasserman <msw@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1555736}

--

wpt-commits: 58ef8ccbdef529f414c074fa57564cf88e7bf7f2
wpt-pr: 56576

Diffstat:
Dtesting/web-platform/tests/ai/language-model/language-model-create-sticky-user-activation.tentative.https.window.js | 29-----------------------------
1 file changed, 0 insertions(+), 29 deletions(-)

diff --git a/testing/web-platform/tests/ai/language-model/language-model-create-sticky-user-activation.tentative.https.window.js b/testing/web-platform/tests/ai/language-model/language-model-create-sticky-user-activation.tentative.https.window.js @@ -1,29 +0,0 @@ -// META: title=LanguageModel.create() User Activation Tests -// META: script=/resources/testdriver.js -// META: script=/resources/testdriver-vendor.js -// META: script=../resources/util.js -// META: timeout=long - -'use strict'; - -promise_test(async t => { - assert_implements_optional( - await LanguageModel.availability() == 'downloadable'); - assert_false(navigator.userActivation.isActive); - return promise_rejects_dom(t, 'NotAllowedError', LanguageModel.create()); -}, 'Create fails without user activation when availability is "downloadable"'); - -promise_test(async t => { - assert_implements_optional( - await LanguageModel.availability() == 'downloadable', - 'This test only runs if model is downloadable'); - - await test_driver.bless('Enable LanguageModel create()'); - - // Consume transient activation. - consumeTransientUserActivation(); - assert_true(navigator.userActivation.hasBeenActive); - assert_false(navigator.userActivation.isActive); - - return LanguageModel.create(); -}, 'Create succeeds with sticky activation when availability is "downloadable"');