Closed Bug 2079680 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63373 - [HiC] Privacy fix for popovers in the canvas subtree

Categories

(Core :: Graphics: Canvas2D, 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 63373 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63373
Details from upstream follow.

Stephen Chenney <schenney@chromium.org> wrote:

[HiC] Privacy fix for popovers in the canvas subtree

When an element inside the canvas subtree is activated as
a popover, it ceases to preserve privacy because it is no
longer rendered in the elements display item list. We want
it this way so as not to unnecessarily hobble content.

But when the popover status changes, the cached display items
may be reused, resulting in private content being drawn when
the no-longer-top-layer popover is rendered into the canvas.

This CL treats change in popover status as equivalent to
leaving/entering the canvas subtree, and calls
DidChangeIsInCanvasSubtree to do the necessary invalidations.

Bug: 558101052
Change-Id: I3ca6f6bf848f00b3f3b6852824f7dd4b47b8e561
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8526513
Auto-Submit: Stephen Chenney \<schenney@chromium.org>
Reviewed-by: Stefan Zager \<szager@chromium.org>
Commit-Queue: Stephen Chenney \<schenney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1713767}

Component: web-platform-tests → Graphics: Canvas2D
Product: Testing → Core

CI Results

Ran 4 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 90 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 89[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 1[GitHub] 89[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR: 1

Chrome

OK : 1
FAIL : 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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.