tor-browser

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

commit 9fe300012591e8a0e13c5ace2ca37663f0aedfd0
parent 8772ec0f6cfdbbe13aa511bfa4c05c193eef61d2
Author: Mike West <mkwst@chromium.org>
Date:   Tue, 21 Oct 2025 10:16:34 +0000

Bug 1994378 [wpt PR 55357] - [OriginAPI] Drop serialization., a=testonly

Automatic update from web-platform-tests
[OriginAPI] Drop serialization.

After discussion in [1], we're dropping serialization until and unless
stronger use cases and developer need arises:

[1]: https://github.com/mikewest/origin-api/issues/7

Bug: 434131026
Change-Id: I104d72e3314c136513f09035af82f757417bf2c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7002779
Reviewed-by: Daniel Vogelheim <vogelheim@chromium.org>
Commit-Queue: Mike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1529962}

--

wpt-commits: 1f747678ef8ab1564d6ca94b611d24eed9bd4d1d
wpt-pr: 55357

Diffstat:
Mtesting/web-platform/tests/html/browsers/origin/tentative/api/origin-fromURL.any.js | 3---
Mtesting/web-platform/tests/html/browsers/origin/tentative/api/origin.any.js | 5-----
Mtesting/web-platform/tests/interfaces/origin.tentative.idl | 2--
3 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/testing/web-platform/tests/html/browsers/origin/tentative/api/origin-fromURL.any.js b/testing/web-platform/tests/html/browsers/origin/tentative/api/origin-fromURL.any.js @@ -15,13 +15,11 @@ for (const opaque of opaqueURLs) { test(t => { const origin = Origin.fromURL(opaque); assert_true(origin.opaque, "Origin should be opaque."); - assert_equals(origin.toJSON(), "null", "toJSON() should return the serialized origin."); }, `Origin.fromURL for opaque URL as string '${opaque}'.`); test(t => { const origin = Origin.fromURL(new URL(opaque)); assert_true(origin.opaque, "Origin should be opaque."); - assert_equals(origin.toJSON(), "null", "toJSON() should return the serialized origin."); }, `Origin.fromURL for opaque URL as URL '${opaque}'.`); } @@ -69,6 +67,5 @@ for (const tuple of tupleSerializations) { test(t => { const origin = Origin.fromURL(tuple); assert_false(origin.opaque, "Origin should not be opaque."); - assert_equals(origin.toJSON(), (new URL(tuple)).origin, "toJSON() should return the serialized origin."); }, `Origin constructed from '${tuple}' is a tuple origin.`); } diff --git a/testing/web-platform/tests/html/browsers/origin/tentative/api/origin.any.js b/testing/web-platform/tests/html/browsers/origin/tentative/api/origin.any.js @@ -6,19 +6,16 @@ test(t => { const origin = new Origin(); assert_true(origin.opaque, "Origin should be opaque."); - assert_equals(origin.toJSON(), "null", "toJSON() should return 'null'."); }, "Default-constructed Origin is opaque."); test(t => { const origin = new Origin("null"); assert_true(origin.opaque, "Origin should be opaque."); - assert_equals(origin.toJSON(), "null", "toJSON() should return 'null'."); }, "Origin constructed with 'null' is opaque."); test(t => { const origin = Origin.parse("null"); assert_true(origin.opaque, "Origin should be opaque."); - assert_equals(origin.toJSON(), "null", "toJSON() should return 'null'."); }, "Origin parsed from 'null' is opaque."); // @@ -67,13 +64,11 @@ for (const tuple of tupleSerializations) { test(t => { const origin = new Origin(tuple); assert_false(origin.opaque, "Origin should not be opaque."); - assert_equals(origin.toJSON(), tuple, "toJSON() should return the serialized origin."); }, `Origin constructed from '${tuple}' is a tuple origin.`); test(t => { const origin = Origin.parse(tuple); assert_false(origin.opaque, "Origin should not be opaque."); - assert_equals(origin.toJSON(), tuple, "toJSON() should return the serialized origin."); }, `Origin parsed from '${tuple}' is a tuple origin.`); test(t => { diff --git a/testing/web-platform/tests/interfaces/origin.tentative.idl b/testing/web-platform/tests/interfaces/origin.tentative.idl @@ -7,8 +7,6 @@ interface Origin { static Origin? parse(USVString serializedOrigin); static Origin? fromURL(USVString serializedURL); - stringifier USVString toJSON(); - readonly attribute boolean opaque; boolean isSameOrigin(Origin other);