[wpt-sync] Sync PR 61763 - [CE] Update setConstraints() for single track capability elements
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 61763 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/61763
Details from upstream follow.
Ravjit Uppal <ravjit@chromium.org> wrote:
[CE] Update setConstraints() for single track capability elements
This CL separates the IDL setConstraints method signatures for
\<camera>/\<microphone> (MediaTrackConstraintSet) vs \<usermedia>
(HTMLMediaStreamConstraints) while consolidating internal storage and
sanitization. Key changes:
- Binds both IDL partial interfaces to MediaCaptureElementConstraints via [ImplementedAs].
- Unifies constraint storage and track sanitization across all media capture elements on HTMLMediaCaptureElementBase.
- Adds unit tests and WPTs for track isolation and constraint sanitization.
Bug: 538120587
Change-Id: I957025af6202b5541a3de563f66af50e5a4da199
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8142265
Reviewed-by: Joey Arhar \<jarhar@chromium.org>
Commit-Queue: Ravjit Uppal \<ravjit@chromium.org>
Reviewed-by: Thomas Nguyen \<tungnh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1674340}
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=6eac901b41a02a21031e3f54723b0e9c47369e37
| Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 15 tests and 1 subtests
Status Summary
Firefox
OK : 3[GitHub] 15[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: 19
FAIL: 5[GitHub] 75[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]
Chrome
OK : 3
PASS: 1
FAIL: 4
Safari
OK : 3
FAIL: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/permission-element/camera/camera-set-constraints.tentative.https.html [wpt.fyi]
- HTMLCameraElement initializes video track and never audio track:
FAIL(Chrome:FAIL, Safari:FAIL) - HTMLCameraElement setConstraints sanitization strips complex ranges without crashing:
FAIL(Chrome:FAIL, Safari:FAIL)
- HTMLCameraElement initializes video track and never audio track:
- /html/semantics/permission-element/microphone/microphone-set-constraints.tentative.https.html [wpt.fyi]
- HTMLMicrophoneElement initializes audio track and never video track:
FAIL(Chrome:FAIL, Safari:FAIL) - HTMLMicrophoneElement setConstraints sanitization strips complex ranges without crashing:
FAIL(Chrome:FAIL, Safari:FAIL)
- HTMLMicrophoneElement initializes audio track and never video track:
- /html/semantics/permission-element/usermedia/idlharness.tentative.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 type:
FAIL - HTMLUserMediaElement interface: attribute onstream:
FAIL - HTMLUserMediaElement interface: attribute oncancel:
FAIL - HTMLUserMediaElement interface: attribute onerror:
FAIL - HTMLUserMediaElement interface: operation isTypeSupported(DOMString):
FAIL - HTMLUserMediaElement interface: attribute stream:
FAIL - HTMLUserMediaElement interface: attribute error:
FAIL - HTMLUserMediaElement interface: operation setConstraints(optional HTMLMediaStreamConstraints):
FAIL - HTMLUserMediaElement interface: attribute isValid:
FAIL - HTMLUserMediaElement interface: attribute invalidReason:
FAIL - HTMLUserMediaElement interface: attribute initialPermissionStatus:
FAIL - HTMLUserMediaElement interface: attribute permissionStatus:
FAIL - HTMLUserMediaElement interface: attribute onpromptaction:
FAIL - HTMLUserMediaElement interface: attribute onpromptdismiss:
FAIL - HTMLUserMediaElement interface: attribute onvalidationstatuschange:
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 "type" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onstream" with the proper type:
FAIL - HTMLUserMediaElement interface: calling isTypeSupported(DOMString) on document.createElement('usermedia') with too few arguments must throw TypeError:
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 - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "isValid" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "invalidReason" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "initialPermissionStatus" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "permissionStatus" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onpromptaction" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onpromptdismiss" with the proper type:
FAIL - HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onvalidationstatuschange" with the proper type:
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.tentative.html [wpt.fyi]
- None of the listed properties should be applied:
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/no-children-rendered.tentative.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.tentative.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.tentative.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.tentative.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.tentative.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.tentative.https.html [wpt.fyi]
- HTMLUserMediaElement setConstraints sanitization handles video and audio constraint dictionaries correctly:
FAIL(Chrome:PASS, Safari:FAIL)
- HTMLUserMediaElement setConstraints sanitization handles video and audio constraint dictionaries correctly:
- /html/semantics/permission-element/usermedia/usermedia-untrusted-click.tentative.https.html [wpt.fyi]
- Untrusted click on usermedia element should fail with InvalidStateError:
FAIL
- Untrusted click on usermedia element should fail with InvalidStateError:
Comment 4•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cc4ad559e0ee
https://hg.mozilla.org/mozilla-central/rev/a2bc2c02a958
Description
•