Closed Bug 1471165 Opened 7 years ago Closed 7 years ago

Bypass binding restrictions preventing the use of optional dictionaries with required arguments

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(4 files)

MediaCapabilities (introduced in bug 1409664) spec make use of optional dictionaries, each of those dictionaries having required members. Per bug 1368949, further discussed in https://github.com/heycam/webidl/issues/76 having a required member in a dictionary, prevent that dictionary to be optional. While waiting for an agreement to be found on how to best handle this in the binding, in the mean time, let's implement the spec behaviour in code.
In order to allow for optional dictionaries with required members See https://github.com/heycam/webidl/issues/76 for more information.
There are two tests failing: Test that decodingInfo rejects if the video configuration contentType has more than one parameter and Test that decodingInfo rejects if the audio configuration contentType has more than one parameter Our nsContentTypeParser doesn't provide an ability to count the nomber of parameters, only to retrieve one if the name is known. Considering the scope of the extra work, we'll leave it as-is for now
Comment on attachment 8987910 [details] Bug 1471165 - P2. Add logging facilities. r?bryce Bryce Van Dyk (:bryce) has approved the revision. https://phabricator.services.mozilla.com/D1834
Attachment #8987910 - Flags: review+
Comment on attachment 8987911 [details] Bug 1471165 - P3. Update web-platform-tests results. r?bryce Bryce Van Dyk (:bryce) has approved the revision. https://phabricator.services.mozilla.com/D1835
Attachment #8987911 - Flags: review+
Somehow clang-format produces different output on mac than with the default version on windows, so run-it again. Depends on D1835
Comment on attachment 8988238 [details] Bug 1471165 - P4. run clang-format on MediaCapabilities. r?bryce Bryce Van Dyk (:bryce) has approved the revision. https://phabricator.services.mozilla.com/D1848
Attachment #8988238 - Flags: review+
Priority: -- → P3
Comment on attachment 8987908 [details] Bug 1471165 - P1. Simulate required MediaCapabilities members in optional dictionary. r?bz Boris Zbarsky [:bz] (no decent commit message means r-) has approved the revision. https://phabricator.services.mozilla.com/D1833
Attachment #8987908 - Flags: review+
Pushed by jyavenard@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3f1d5e7ef244 P1. Simulate required MediaCapabilities members in optional dictionary. r=bz https://hg.mozilla.org/integration/mozilla-inbound/rev/6571ee61f0aa P2. Add logging facilities. r=bryce https://hg.mozilla.org/integration/mozilla-inbound/rev/bf624413028d P3. Update web-platform-tests results. r=bryce
Assignee: nobody → jyavenard
Is there a followup, depending on bug 1368949, to realign with the spec idl here?
Flags: needinfo?(jyavenard)
there is not...
Flags: needinfo?(jyavenard)
Could you please get one on file, with a summary of what needs to happen?
Flags: needinfo?(jyavenard)
Flags: needinfo?(jyavenard)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: