[wpt-sync] Sync PR 61718 - [CE] Replace stream attribute in <camera> and <microphone> with track
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 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
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=0f31ab46310b136a8116c87f51bfe681991e797c
| 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 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)
- HTMLCameraElement has track attribute and ontrack event handler:
- /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)
- HTMLCameraElement interface: existence and properties of interface object:
- /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)
- HTMLMicrophoneElement interface: existence and properties of interface object:
- /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)
- HTMLMicrophoneElement has track attribute and ontrack event handler:
Comment 4•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2784419b56f0
https://hg.mozilla.org/mozilla-central/rev/9e072f919882
Description
•