Closed Bug 2034242 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 59413 - [CE]: Update HTMLUserMediaElement setConstraints and expand WPT coverage

Categories

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

task

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Thomas Nguyen <tungnh@chromium.org> wrote:

[CE]: Update HTMLUserMediaElement setConstraints and expand WPT coverage

Modify the setConstraints IDL definition for HTMLUserMediaElement to
make the constraints argument optional. This alignment ensures the
method can be called without parameters, defaulting to an empty
constraints object.

Additionally, this CL introduces several new wpt to verify the behavior
of the UserMedia element

Fixed: 494493530
Change-Id: I940bf41ff904340eb88e96a4ef4bbfcc64be1011
Reviewed-on: https://chromium-review.googlesource.com/7784555
WPT-Export-Revision: e72ab4a585fa94f87f5b29b86d08984361c60f36

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

CI Results

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

Total 10 tests and 3 subtests

Status Summary

Firefox

OK : 3[GitHub] 9[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 : 13
FAIL : 55[GitHub] 67[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]
ERROR: 1

Chrome

OK : 4
PASS : 68
FAIL : 1

Safari

OK : 3
PASS : 13
FAIL : 55
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/permission-element/usermedia/idlharness.tentative.window.html [wpt.fyi]
    • HTMLUserMediaElement interface: existence and properties of interface object: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface object length: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface object name: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: existence and properties of interface prototype object: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute onstream: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: operation isTypeSupported(DOMString): FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute stream: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute error: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: operation setConstraints(optional MediaStreamConstraints): FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute isValid: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute invalidReason: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute initialPermissionStatus: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute permissionStatus: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute onpromptaction: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute onpromptdismiss: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: attribute onvalidationstatuschange: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement must be primary interface of document.createElement('usermedia'): FAIL (Chrome: PASS, Safari: FAIL)
    • Stringification of document.createElement('usermedia'): FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "type" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onstream" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: calling isTypeSupported(DOMString) on document.createElement('usermedia') with too few arguments must throw TypeError: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "stream" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "error" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "setConstraints(optional MediaStreamConstraints)" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: calling setConstraints(optional MediaStreamConstraints) on document.createElement('usermedia') with too few arguments must throw TypeError: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "isValid" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "invalidReason" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "initialPermissionStatus" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "permissionStatus" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onpromptaction" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onpromptdismiss" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLUserMediaElement interface: document.createElement('usermedia') must inherit property "onvalidationstatuschange" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: existence and properties of interface object: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface object length: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface object name: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: existence and properties of interface prototype object: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute position: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute error: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute autolocate: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute watch: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute onlocation: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute isValid: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute invalidReason: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute initialPermissionStatus: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute permissionStatus: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute onpromptaction: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute onpromptdismiss: FAIL (Chrome: PASS, Safari: FAIL)
    • HTMLGeolocationElement interface: attribute onvalidationstatuschange: FAIL (Chrome: PASS, Safari: FAIL)
  • /html/semantics/permission-element/usermedia/invalid-css-properties.tentative.html [wpt.fyi]
    • None of the listed properties should be applied: FAIL
  • /html/semantics/permission-element/usermedia/lang-attribute-update.html [wpt.fyi]
    • UserMedia element should dynamically change text when the lang attribute changes: FAIL
  • /html/semantics/permission-element/usermedia/no-children-rendered.tentative.html [wpt.fyi]
    • The usermedia element should have no end tag or contents: FAIL
  • /html/semantics/permission-element/usermedia/no-focus.tentative.html [wpt.fyi]
    • UserMedia element is not focusable by script without user activation: FAIL
  • /html/semantics/permission-element/usermedia/usermedia-constraints-descriptors.tentative.html [wpt.fyi]
    • Setting video constraints triggers video stream: FAIL
    • Setting audio constraints triggers audio stream: FAIL
    • Setting both video and audio constraints triggers both streams: FAIL
    • Setting video: true and audio: false triggers video stream: FAIL
    • Setting video: false and audio: true triggers audio stream: FAIL
  • /html/semantics/permission-element/usermedia/usermedia-dynamic-constraints.tentative.https.html [wpt.fyi]
    • A usermedia element respects the first constraints set and ignores subsequent calls: FAIL (Chrome: PASS, Safari: FAIL)
  • /html/semantics/permission-element/usermedia/usermedia-error-attribute.html [wpt.fyi]: ERROR (Chrome: OK, Safari: ERROR)
  • /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 (Chrome: PASS, Safari: FAIL)
  • /html/semantics/permission-element/usermedia/usermedia-no-constraints.tentative.html [wpt.fyi]
    • A usermedia element with no constraints set should not trigger a stream request on click: FAIL
    • A usermedia element with both video and audio constraints set to false should not trigger a stream request on click: FAIL
    • A usermedia element with video constraints set should trigger a stream request on click: FAIL
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Regressions: 2035841
You need to log in before you can comment on or make changes to this bug.