tor-browser

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

commit 7ecbfc2338c7d15a6031d4f721b48f3725348054
parent 5c88dd4df40143e1e5e2c6b92ea3b9525c9165e0
Author: Euclid Ye <euclid.ye@huawei.com>
Date:   Wed, 15 Oct 2025 08:57:32 +0000

Bug 1993962 [wpt PR 55379] - webdriver: Fix JS serialization for object with special key, a=testonly

Automatic update from web-platform-tests
New script test

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>

--
Async test

Signed-off-by: Euclid Ye <euclid.ye@huawei.com>

--

wpt-commits: 1b7ad582c3b34022347d1c80276c620b5e95c21f, 4a4061207f12dc55837668a538fbb8649ca92de2
wpt-pr: 55379

Diffstat:
Mtesting/web-platform/tests/webdriver/tests/classic/execute_async_script/arguments.py | 3++-
Mtesting/web-platform/tests/webdriver/tests/classic/execute_script/arguments.py | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/testing/web-platform/tests/webdriver/tests/classic/execute_async_script/arguments.py b/testing/web-platform/tests/webdriver/tests/classic/execute_async_script/arguments.py @@ -23,7 +23,8 @@ def test_null(session): ("foo", "string"), ("foo\"bar", 'string'), ('"); alert(1); //', "string"), -], ids=["boolean", "number", "string", "string_quote", "string_injection"]) + ({"foo-bar":"bar-foo"}, "object") +], ids=["boolean", "number", "string", "string_quote", "string_injection", "special_key_object"]) def test_primitives(session, value, expected_type): result = execute_async_script(session, """ arguments[1]([typeof arguments[0], arguments[0]]) diff --git a/testing/web-platform/tests/webdriver/tests/classic/execute_script/arguments.py b/testing/web-platform/tests/webdriver/tests/classic/execute_script/arguments.py @@ -21,7 +21,8 @@ def test_null(session): ("foo", "string"), ("foo\"bar", 'string'), ('"); alert(1); //', "string"), -], ids=["boolean", "number", "string", "string_quote", "string_injection"]) + ({"foo-bar":"bar-foo"}, "object") +], ids=["boolean", "number", "string", "string_quote", "string_injection", "special_key_object"]) def test_primitives(session, value, expected_type): result = execute_script(session, "return [typeof arguments[0], arguments[0]]", args=[value]) actual = assert_success(result)