Closed Bug 2080518 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63502 - Do not paint focus ring for display-locked <area> elements

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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}

Component: web-platform-tests → Layout
Product: Testing → Core

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

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/24bf7fca002b https://hg.mozilla.org/integration/autoland/rev/777d5bdcee15 [wpt PR 63502] - Do not paint focus ring for display-locked <area> elements, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.