tor-browser

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

commit a0c0834370b07fe2abde65070949730619548efe
parent 47522c30a59571a3ad9c2abedba4c8fbb30ebd45
Author: moonira <moonira@google.com>
Date:   Fri, 19 Dec 2025 05:42:10 +0000

Bug 2006129 [wpt PR 56742] - Do not cache styles with css random() in MPC, a=testonly

Automatic update from web-platform-tests
Do not cache styles with css random() in MPC

Mark styles with CSS random() values as not cacheable in MPC.

Bug: 413385732
Change-Id: I38c6d1770ba504602551724908f59f32e73f471b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7246178
Commit-Queue: Munira Tursunova <moonira@google.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1558777}

--

wpt-commits: 6e25a3af5ef93797aa2dbe239e59e3b4b71a07a1
wpt-pr: 56742

Diffstat:
Mtesting/web-platform/tests/css/css-values/random-computed.tentative.html | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-values/random-computed.tentative.html b/testing/web-platform/tests/css/css-values/random-computed.tentative.html @@ -608,4 +608,31 @@ test(() => { } }, `Fixed: random(fixed <number>, a, b)`); +// Test random value sharing +test(() => { + const holder = document.createElement('div'); + document.body.appendChild(holder); + + try { + const el = document.createElement('div'); + el.className = 'randomIdentifier'; + holder.appendChild(el); + const elComputedHeight = getComputedStyle(el)['height']; + + var allSame = true; + for (i = 0; i < iterations; ++i) { + const other = document.createElement('div'); + other.className = 'randomIdentifier'; + holder.appendChild(other); + const otherComputedHeight = getComputedStyle(other)['height']; + if (elComputedHeight != otherComputedHeight) { + allSame = false; + } + } + assert_false(allSame); + } finally { + document.body.removeChild(holder); + } +}, `Different between elements with same identifier random(--identifier, a, b)`); + </script>