Closed Bug 2070543 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62506 - [PEPC] Disallow container-type, container-name, and contain-intrinsic*

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62506 into mozilla-central (this bug is closed when the sync is complete).

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

Thomas Nguyen <tungnh@chromium.org> wrote:

[PEPC] Disallow container-type, container-name, and contain-intrinsic*

container-type: size enables size containment, which causes the
element's fit-content width to resolve from contain-intrinsic-width
instead of the user-agent controlled shadow-DOM label. The width bounds
applied in AdjustStyle() are expressed as calc-size(fit-content, k *
size), so an author-supplied intrinsic width can replace the label width
those bounds are meant to track, allowing clickjacking boundaries to be
bypassed.
Since contain is already disallowed, remove
valid_for_permission_element: true from container-type, container-name,
and contain-intrinsic-* (width, height, inline-size, block-size, size)
as well.

Fixed: 514061289
Change-Id: I09daff39d72a39da4ebe687bd33b0a9d37fae9dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8363545
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Thomas Nguyen \<tungnh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1693346}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 74 tests and 1 subtests

Status Summary

Firefox

OK : 3[GitHub] 30[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-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]
PASS : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 40[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 59[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 3[GitHub] 114[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 129[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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
ERROR : 2
NOTRUN: 2

Chrome

OK : 3
FAIL : 3

Safari

OK : 3
FAIL : 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/567fd48e8d7a https://hg.mozilla.org/integration/autoland/rev/d13375fd85d8 [wpt PR 62506] - [PEPC] Disallow container-type, container-name, and contain-intrinsic*, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.