Closed Bug 2060507 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 61718 - [CE] Replace stream attribute in <camera> and <microphone> with track

Categories

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

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ravjit Uppal <ravjit@chromium.org> wrote:

[CE] Replace stream attribute in <camera> and <microphone> with track

This CL refactors HTMLCameraElement and HTMLMicrophoneElement to inherit
from a new base class, HTMLMediaTrackElementBase (which inherits from
HTMLMediaCaptureElementBase). This new base class replaces the 'stream'
attribute and 'onstream' event handler with a 'track' attribute
(returning a MediaStreamTrack) and an 'ontrack' event handler, which are
more appropriate for single-track media elements.

The 'stream' attribute and 'onstream' event handler are moved to
HTMLUserMediaElement. UserMediaRequestProviderImpl is updated to extract
and set the correct audio or video track for microphone and camera
elements respectively. Web platform tests and unit tests are added to
verify the new IDL and behavior.

Bug: 538119454
Change-Id: Ia3ce2211768a66ee2e2f45d8c08140dc18eac58c
Reviewed-on: https://chromium-review.googlesource.com/8139699
WPT-Export-Revision: 85a0f7b0542724bf4ee5f88c0fdcf71e20cf1982

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 4 tests and 1 subtests

Status Summary

Firefox

OK : 4
PASS: 24
FAIL: 34

Chrome

OK : 4
PASS: 24
FAIL: 34

Safari

OK : 4
PASS: 24
FAIL: 34

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/permission-element/camera/camera-track-attribute.tentative.https.html [wpt.fyi]
    • HTMLCameraElement has track attribute and ontrack event handler: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/semantics/permission-element/camera/idlharness.tentative.window.html [wpt.fyi]
    • HTMLCameraElement interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface object length: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface object name: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: attribute track: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: attribute error: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: attribute ontrack: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: attribute oncancel: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: attribute onerror: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement must be primary interface of document.createElement('camera'): FAIL (Chrome: FAIL, Safari: FAIL)
    • Stringification of document.createElement('camera'): FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: document.createElement('camera') must inherit property "track" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: document.createElement('camera') must inherit property "error" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLCameraElement interface: document.createElement('camera') must inherit property "ontrack" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/semantics/permission-element/microphone/idlharness.tentative.window.html [wpt.fyi]
    • HTMLMicrophoneElement interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface object length: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface object name: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: attribute track: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: attribute error: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: attribute ontrack: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: attribute oncancel: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: attribute onerror: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement must be primary interface of document.createElement('microphone'): FAIL (Chrome: FAIL, Safari: FAIL)
    • Stringification of document.createElement('microphone'): FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: document.createElement('microphone') must inherit property "track" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: document.createElement('microphone') must inherit property "error" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
    • HTMLMicrophoneElement interface: document.createElement('microphone') must inherit property "ontrack" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
  • /html/semantics/permission-element/microphone/microphone-track-attribute.tentative.https.html [wpt.fyi]
    • HTMLMicrophoneElement has track attribute and ontrack event handler: FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.