tor-browser

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

commit 725e6229c6e68df381fbe654049f609b9b280b58
parent a18f9151709fda8b2619153fe28b07ff09a4f475
Author: Anders Hartvoll Ruud <andruud@chromium.org>
Date:   Wed, 26 Nov 2025 09:00:53 +0000

Bug 2002253 [wpt PR 56259] - Fix crash when two identical stylesheets don't produce RuleSets, a=testonly

Automatic update from web-platform-tests
Fix crash when two identical stylesheets don't produce RuleSets

This is a regression from CL:7185810: I forgot that StyleEngine::
RuleSetForSheet can return nullptr if the associated "media" attribute
doesn't match.

Fixed: 463405540
Change-Id: I836ad560038918d8aefb20c512ca535420ddf39c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7203284
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1549691}

--

wpt-commits: c7ea115e41ae4061c9c5841b6208505568c3db8f
wpt-pr: 56259

Diffstat:
Atesting/web-platform/tests/css/mediaqueries/duplicate-media-stylesheet-crash.html | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/mediaqueries/duplicate-media-stylesheet-crash.html b/testing/web-platform/tests/css/mediaqueries/duplicate-media-stylesheet-crash.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<title>Crash test: duplicate stylesheet with non-matching media</title> +<link rel="help" href="https://issues.chromium.org/issues/463405540"> +<style media="unknown"> + p {} +</style> +<style media="unknown"> + p {} +</style> +PASS if no crash