commit 1751fbee959b8d5ec1271236c393295857e937a7
parent 6e7bd3bf518e44172eab50ca5f848479a8b42f98
Author: Rune Lillesveen <futhark@chromium.org>
Date: Tue, 16 Dec 2025 08:47:20 +0000
Bug 2005722 [wpt PR 56712] - Add missing nullptr check for GetPage() in accentcolor handling, a=testonly
Automatic update from web-platform-tests
Add missing nullptr check for GetPage() in accentcolor handling
A non-rendered constructed document does not have a Page.
Bug: 467732064
Change-Id: Ifaf12d7ce07afe8b91f7638ef5ea19de5da10007
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7252951
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Auto-Submit: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Steinar H Gunderson <sesse@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1557932}
--
wpt-commits: bd36957a8eb239dcfa52b6f7fa368497678afbbe
wpt-pr: 56712
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-ui/crashtests/chrome-bug-467732064.html b/testing/web-platform/tests/css/css-ui/crashtests/chrome-bug-467732064.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<title>Chrome crash with accentcolor in constructed document</title>
+<link rel="help" href="https://crbug.com/467732064">
+<script>
+ let doc = document.implementation.createHTMLDocument();
+ doc.documentElement.setAttribute("style", "color:accentcolor");
+</script>