[wpt-sync] Sync PR 63502 - Do not paint focus ring for display-locked <area> elements
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63502 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63502
Details from upstream follow.
David Awogbemila <awogbemila@chromium.org> wrote:
Do not paint focus ring for display-locked <area> elements
When painting an \<img> with an associated focused \<area> element,
ImagePainter::PaintAreaElementFocusRing calls EnsureComputedStyle() on
the \<area> to check for outlines.In the linked bug, Blink attempts to paint a display-locked \<area>
element. This triggers a style update mid-paint which leads to a
use-after-free.This CL skips painting the focus ring if the \<area> is display-locked.
Bug: 570743446
Change-Id: I6c2677fce30feb1e4a46e901a69c02084159c8b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8551233
Reviewed-by: Vladimir Levin \<vmpstr@chromium.org>
Commit-Queue: David A \<awogbemila@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1715794}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=103220
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 8 tests
Status Summary
Firefox
PASS: 1[GitHub] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
PASS: 1
Safari
PASS: 1
Description
•