[wpt-sync] Sync PR 62506 - [PEPC] Disallow container-type, container-name, and contain-intrinsic*
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| 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}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=ef4431b0cf4476a3145faecc4367d24d03a4a576
| Assignee | ||
Comment 2•2 months ago
|
||
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
- /html/semantics/permission-element/geolocation-element/geolocation-element-with-comment.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-fill-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-height-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-margin-inline-end-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-min-height-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-stroke-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-css-property-stroke-width-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-different-for-precise-location-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/icon-hidden-reftest.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/permission-element-with-comment.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/pseudo-elements-in-div.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/pseudo-elements.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/install/install-element-with-comment.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/install/pseudo-elements-in-div.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/install/pseudo-elements.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/geolocation-element/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/geolocation-element/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/geolocation-element/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/sandbox-not-allowed.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/geolocation-element/bounded-css-properties.tentative.html [wpt.fyi]
- Properties with out-of-bounds values should be corrected:
FAIL
- Properties with out-of-bounds values should be corrected:
- /html/semantics/permission-element/geolocation-element/bounded-sizes.tentative.html [wpt.fyi]
- Properties with out-of-bounds values should be corrected:
FAIL - Properties with values in bounds should not be modified:
FAIL - 'Min' properties should not be allowed to go over the maximum allowed values for 'max' properties:
FAIL
- Properties with out-of-bounds values should be corrected:
- /html/semantics/permission-element/geolocation-element/get-current-position-error.html [wpt.fyi]:
ERROR- Tests Geolocation element's error callback:
NOTRUN
- Tests Geolocation element's error callback:
- /html/semantics/permission-element/geolocation-element/get-current-position-success.html [wpt.fyi]:
ERROR- Tests Geolocation element's success callback:
NOTRUN
- Tests Geolocation element's success callback:
- /html/semantics/permission-element/geolocation-element/granted-selector.html [wpt.fyi]
- Geolocation element should not have the granted selector when the permission is not granted.:
FAIL
- Geolocation element should not have the granted selector when the permission is not granted.:
- /html/semantics/permission-element/geolocation-element/icon-color-defaults-to-text-color.html [wpt.fyi]
- Permission element icon's color should be same as the text color unless explicitly changed.:
FAIL
- Permission element icon's color should be same as the text color unless explicitly changed.:
- /html/semantics/permission-element/geolocation-element/idlharness.tentative.window.html [wpt.fyi]
- HTMLGeolocationElement interface: existence and properties of interface object:
FAIL - HTMLGeolocationElement interface object length:
FAIL - HTMLGeolocationElement interface object name:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object's "constructor" property:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object's @@unscopables property:
FAIL - HTMLGeolocationElement interface: attribute position:
FAIL - HTMLGeolocationElement interface: attribute error:
FAIL - HTMLGeolocationElement interface: attribute autolocate:
FAIL - HTMLGeolocationElement interface: attribute watch:
FAIL - HTMLGeolocationElement interface: attribute onlocation:
FAIL - HTMLGeolocationElement interface: attribute isValid:
FAIL - HTMLGeolocationElement interface: attribute invalidReason:
FAIL - HTMLGeolocationElement interface: attribute initialPermissionStatus:
FAIL - HTMLGeolocationElement interface: attribute permissionStatus:
FAIL - HTMLGeolocationElement interface: attribute onpromptaction:
FAIL - HTMLGeolocationElement interface: attribute onpromptdismiss:
FAIL - HTMLGeolocationElement interface: attribute onvalidationstatuschange:
FAIL - HTMLGeolocationElement must be primary interface of document.createElement('geolocation'):
FAIL - Stringification of document.createElement('geolocation'):
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "position" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "error" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "autolocate" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "watch" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "onlocation" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "isValid" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "invalidReason" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "initialPermissionStatus" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "permissionStatus" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "onpromptaction" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "onpromptdismiss" with the proper type:
FAIL - HTMLGeolocationElement interface: document.createElement('geolocation') must inherit property "onvalidationstatuschange" with the proper type:
FAIL
- HTMLGeolocationElement interface: existence and properties of interface object:
- /html/semantics/permission-element/geolocation-element/invalid-css-properties.tentative.html [wpt.fyi]
- None of the listed properties should be applied:
FAIL(Chrome:FAIL, Safari:FAIL)
- None of the listed properties should be applied:
- /html/semantics/permission-element/geolocation-element/negative-offset.tentative.html [wpt.fyi]
- Negative offset should be changed to 0px:
FAIL - Expressions offset min(-50px, 50px) should return at least 0px:
FAIL - Expressions offset clamp(-100px, 1vw, -50px) should return at least 0px:
FAIL
- Negative offset should be changed to 0px:
- /html/semantics/permission-element/geolocation-element/no-children-rendered.tentative.html [wpt.fyi]
- The geolocation element should have no end tag or contents:
FAIL
- The geolocation element should have no end tag or contents:
- /html/semantics/permission-element/install/bounded-css-properties.tentative.html [wpt.fyi]
- Properties with values over bounds should be clamped down:
FAIL - Properties with values under bounds should be clamped up:
FAIL
- Properties with values over bounds should be clamped down:
- /html/semantics/permission-element/install/bounded-sizes.tentative.html [wpt.fyi]
- Properties with out-of-bounds values should be corrected:
FAIL - Properties with values in bounds should not be modified:
FAIL - 'Min' properties should not be allowed to go over the maximum allowed values for 'max' properties:
FAIL
- Properties with out-of-bounds values should be corrected:
- /html/semantics/permission-element/install/iframe-not-allowed.tentative.html [wpt.fyi]
- Install element is not allowed in a same-origin iframe:
FAIL - Install element is not allowed in an iframe even with permissions policy:
FAIL
- Install element is not allowed in a same-origin iframe:
- /html/semantics/permission-element/install/install-element-feature-detect.tentative.html [wpt.fyi]
- Test HTMLInstallElement existence and instanceof:
FAIL
- Test HTMLInstallElement existence and instanceof:
- /html/semantics/permission-element/install/invalid-css-properties.tentative.html [wpt.fyi]
- None of the listed properties should be applied:
FAIL(Chrome:FAIL, Safari:FAIL)
- None of the listed properties should be applied:
- /html/semantics/permission-element/install/negative-offset.tentative.html [wpt.fyi]
- Negative offset should be changed to 0px:
FAIL - Expressions offset min(-50px, 50px) should return at least 0px:
FAIL - Expressions offset clamp(-100px, 1vw, -50px) should return at least 0px:
FAIL
- Negative offset should be changed to 0px:
- /html/semantics/permission-element/install/no-children-rendered.tentative.html [wpt.fyi]
- The install element should have no end tag or contents:
FAIL
- The install element should have no end tag or contents:
- /html/semantics/permission-element/install/no-focus.tentative.html [wpt.fyi]
- Install element is not focusable by script without user activation:
FAIL
- Install element is not focusable by script without user activation:
- /html/semantics/permission-element/usermedia/idlharness.window.html [wpt.fyi]
- HTMLUserMediaElement interface: existence and properties of interface object:
FAIL - HTMLUserMediaElement interface object length:
FAIL - HTMLUserMediaElement interface object name:
FAIL - HTMLUserMediaElement interface: existence and properties of interface prototype object:
FAIL - HTMLUserMediaElement interface: existence and properties of interface prototype object's "constructor" property:
FAIL - HTMLUserMediaElement interface: existence and properties of interface prototype object's @@unscopables property:
FAIL - HTMLUserMediaElement interface: attribute onstream:
FAIL - HTMLUserMediaElement interface: attribute oncancel:
FAIL - HTMLUserMediaElement interface: attribute onerror:
FAIL - HTMLUserMediaElement interface: attribute stream:
FAIL - HTMLUserMediaElement interface: attribute error:
FAIL - HTMLUserMediaElement interface: operation setConstraints(optional HTMLMediaStreamConstraints):
FAIL - HTMLUserMediaElement must be primary interface of document.createElement('usermedia'):
FAIL - Stringification of document.createElement('usermedia'):
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onstream" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "stream" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "error" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "setConstraints(optional HTMLMediaStreamConstraints)" with the proper type:
FAIL - HTMLUserMediaElement interface: calling setConstraints(optional HTMLMediaStreamConstraints) on document.createElement('usermedia') with too few arguments must throw TypeError:
FAIL - HTMLGeolocationElement interface: existence and properties of interface object:
FAIL - HTMLGeolocationElement interface object length:
FAIL - HTMLGeolocationElement interface object name:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object's "constructor" property:
FAIL - HTMLGeolocationElement interface: existence and properties of interface prototype object's @@unscopables property:
FAIL - HTMLGeolocationElement interface: attribute position:
FAIL - HTMLGeolocationElement interface: attribute error:
FAIL - HTMLGeolocationElement interface: attribute autolocate:
FAIL - HTMLGeolocationElement interface: attribute watch:
FAIL - HTMLGeolocationElement interface: attribute onlocation:
FAIL - HTMLGeolocationElement interface: attribute isValid:
FAIL - HTMLGeolocationElement interface: attribute invalidReason:
FAIL - HTMLGeolocationElement interface: attribute initialPermissionStatus:
FAIL - HTMLGeolocationElement interface: attribute permissionStatus:
FAIL - HTMLGeolocationElement interface: attribute onpromptaction:
FAIL - HTMLGeolocationElement interface: attribute onpromptdismiss:
FAIL - HTMLGeolocationElement interface: attribute onvalidationstatuschange:
FAIL
- HTMLUserMediaElement interface: existence and properties of interface object:
- /html/semantics/permission-element/usermedia/invalid-css-properties.html [wpt.fyi]
- None of the listed properties should be applied:
FAIL(Chrome:FAIL, Safari:FAIL)
- None of the listed properties should be applied:
- /html/semantics/permission-element/usermedia/lang-attribute-update.html [wpt.fyi]
- UserMedia element should dynamically change text when the lang attribute changes:
FAIL
- UserMedia element should dynamically change text when the lang attribute changes:
- /html/semantics/permission-element/usermedia/legacy-mode/legacy-mode.https.html [wpt.fyi]
- isTypeSupported existence and behavior:
FAIL - Legacy attributes existence and validation:
FAIL - Invalid type causes fallback/invalid state in legacy mode:
FAIL - Standard events and stream attribute are not active in legacy mode:
FAIL
- isTypeSupported existence and behavior:
- /html/semantics/permission-element/usermedia/no-children-rendered.html [wpt.fyi]
- The usermedia element should have no end tag or contents:
FAIL
- The usermedia element should have no end tag or contents:
- /html/semantics/permission-element/usermedia/no-focus.html [wpt.fyi]
- UserMedia element is not focusable by script without user activation:
FAIL
- UserMedia element is not focusable by script without user activation:
- /html/semantics/permission-element/usermedia/oncancel-attribute.html [wpt.fyi]
- oncancel IDL attribute:
FAIL
- oncancel IDL attribute:
- /html/semantics/permission-element/usermedia/onerror-attribute.html [wpt.fyi]
- onerror IDL attribute:
FAIL
- onerror IDL attribute:
- /html/semantics/permission-element/usermedia/onstream-attribute.html [wpt.fyi]
- onstream IDL attribute:
FAIL - onstream HTML attribute:
FAIL
- onstream IDL attribute:
- /html/semantics/permission-element/usermedia/set-constraints-combinations.https.html [wpt.fyi]
- Case 0: No constraints:
FAIL - Case 1: Video set, Audio missing:
FAIL - Case 2: Audio set, Video missing:
FAIL - Case 3: Both set:
FAIL
- Case 0: No constraints:
- /html/semantics/permission-element/usermedia/usermedia-cancel-prompt.https.html [wpt.fyi]
- Denying PEPC prompt triggers oncancel event and sets NotAllowedError:
FAIL
- Denying PEPC prompt triggers oncancel event and sets NotAllowedError:
- /html/semantics/permission-element/usermedia/usermedia-iframe.https.html [wpt.fyi]
- A usermedia element in an iframe without permissions policy delegation should be blocked:
FAIL
- A usermedia element in an iframe without permissions policy delegation should be blocked:
- /html/semantics/permission-element/usermedia/usermedia-set-constraints-sanitization.https.html [wpt.fyi]
- HTMLUserMediaElement setConstraints sanitization handles video and audio constraint dictionaries correctly:
FAIL
- HTMLUserMediaElement setConstraints sanitization handles video and audio constraint dictionaries correctly:
- /html/semantics/permission-element/usermedia/usermedia-untrusted-click.https.html [wpt.fyi]
- Untrusted click on usermedia element should fail with InvalidStateError:
FAIL
- Untrusted click on usermedia element should fail with InvalidStateError:
Tests Disabled in Gecko Infrastructure
- /html/semantics/permission-element/geolocation-element/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/geolocation-element/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/geolocation-element/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/sandbox-not-allowed.tentative.html [wpt.fyi]:
SKIP
Comment 4•2 months ago
|
||
| bugherder | ||
Description
•