tor-browser

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

commit 031e9bfed663647c3d0ef2c94454b82226b5001b
parent 640751d6cf2b8d2c23f77909879d50aa2d457448
Author: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Date:   Fri,  7 Nov 2025 08:46:57 +0000

Bug 1998120 [wpt PR 55846] - [wdspec] align `set_scripting_enabled/user_contexts.py:test_set_to_user_context_and_then_to_context` with spec, a=testonly

Automatic update from web-platform-tests
[wdspec] align `webdriver/tests/bidi/emulation/set_scripting_enabled/user_contexts.py:test_set_to_user_context_and_then_to_context` with spec (#55846)

--

wpt-commits: 812f1158b8ce1caf457ffb25f57246a71b492e07
wpt-pr: 55846

Diffstat:
Mtesting/web-platform/tests/webdriver/tests/bidi/emulation/set_scripting_enabled/user_contexts.py | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_scripting_enabled/user_contexts.py b/testing/web-platform/tests/webdriver/tests/bidi/emulation/set_scripting_enabled/user_contexts.py @@ -109,25 +109,25 @@ async def test_set_to_user_context_and_then_to_context( user_context=user_context, type_hint="tab" ) - # Apply scripting override to the user context. + # Disable scripting for the user context. await bidi_session.emulation.set_scripting_enabled( user_contexts=[user_context], enabled=False ) - # Apply scripting override now only to the context. + # Remove scripting override per context. await bidi_session.emulation.set_scripting_enabled( contexts=[context_in_user_context_1["context"]], enabled=None ) - assert await is_scripting_enabled(context_in_user_context_1) is True + # Make sure that the scripting override for the user context is applied. + assert await is_scripting_enabled(context_in_user_context_1) is False await bidi_session.browsing_context.reload( context=context_in_user_context_1["context"], wait="complete" ) - - # Make sure that after reload the scripting is still updated. - assert await is_scripting_enabled(context_in_user_context_1) is True + # Make sure that the scripting override for the user context is applied. + assert await is_scripting_enabled(context_in_user_context_1) is False # Create a new context in the user context. context_in_user_context_2 = await bidi_session.browsing_context.create( @@ -137,7 +137,7 @@ async def test_set_to_user_context_and_then_to_context( assert await is_scripting_enabled(context_in_user_context_2) is False await bidi_session.emulation.set_scripting_enabled( - contexts=[context_in_user_context_1["context"]], + user_contexts=[user_context], enabled=None, )