author | Nils Ohlmeier [:drno] <drno@ohlmeier.org> |
Mon, 19 Mar 2018 06:15:37 +0000 | |
changeset 411764 | 41ddd2c3d501172dcda6548a68651dc708ec2026 |
parent 411763 | 682e5bf710fc0c36c2b9a122dc45be7179aaddb0 |
child 411765 | 64c883d5d65f8769bc385d75f2ea4152c5e38525 |
push id | 33770 |
push user | nerli@mozilla.com |
push date | Thu, 05 Apr 2018 10:01:08 +0000 |
treeherder | mozilla-central@65e0fefdab51 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | smaug |
bugs | 1446880 |
milestone | 61.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
dom/webidl/RTCIdentityProvider.webidl | file | annotate | diff | comparison | revisions | |
dom/webidl/RTCPeerConnection.webidl | file | annotate | diff | comparison | revisions |
--- a/dom/webidl/RTCIdentityProvider.webidl +++ b/dom/webidl/RTCIdentityProvider.webidl @@ -18,31 +18,32 @@ interface RTCIdentityProviderRegistrar { * JS-implemented WebIDL can't see these functions on `idp` above, chrome JS * gets an Xray onto the content code that suppresses functions, see * https://developer.mozilla.org/en-US/docs/Xray_vision#Xrays_for_JavaScript_objects */ /* Forward to idp.generateAssertion() */ [ChromeOnly, Throws] Promise<RTCIdentityAssertionResult> generateAssertion(DOMString contents, DOMString origin, - optional DOMString usernameHint); + optional RTCIdentityProviderOptions options); /* Forward to idp.validateAssertion() */ [ChromeOnly, Throws] Promise<RTCIdentityValidationResult> validateAssertion(DOMString assertion, DOMString origin); }; dictionary RTCIdentityProvider { required GenerateAssertionCallback generateAssertion; required ValidateAssertionCallback validateAssertion; }; callback GenerateAssertionCallback = Promise<RTCIdentityAssertionResult> - (DOMString contents, DOMString origin, optional DOMString usernameHint); + (DOMString contents, DOMString origin, + RTCIdentityProviderOptions options); callback ValidateAssertionCallback = Promise<RTCIdentityValidationResult> (DOMString assertion, DOMString origin); dictionary RTCIdentityAssertionResult { required RTCIdentityProviderDetails idp; required DOMString assertion; }; @@ -50,8 +51,15 @@ dictionary RTCIdentityProviderDetails { required DOMString domain; DOMString protocol = "default"; }; dictionary RTCIdentityValidationResult { required DOMString identity; required DOMString contents; }; + +dictionary RTCIdentityProviderOptions { + DOMString protocol = "default"; + DOMString usernameHint; + DOMString peerIdentity; +}; +
--- a/dom/webidl/RTCPeerConnection.webidl +++ b/dom/webidl/RTCPeerConnection.webidl @@ -78,18 +78,17 @@ dictionary RTCOfferOptions : RTCOfferAns Constructor (optional RTCConfiguration configuration, optional object? constraints)] interface RTCPeerConnection : EventTarget { [Throws, StaticClassOverride="mozilla::dom::RTCCertificate"] static Promise<RTCCertificate> generateCertificate (AlgorithmIdentifier keygenAlgorithm); [Pref="media.peerconnection.identity.enabled"] void setIdentityProvider (DOMString provider, - optional DOMString protocol, - optional DOMString username); + optional RTCIdentityProviderOptions options); [Pref="media.peerconnection.identity.enabled"] Promise<DOMString> getIdentityAssertion(); Promise<RTCSessionDescriptionInit> createOffer (optional RTCOfferOptions options); Promise<RTCSessionDescriptionInit> createAnswer (optional RTCAnswerOptions options); Promise<void> setLocalDescription (RTCSessionDescriptionInit description); Promise<void> setRemoteDescription (RTCSessionDescriptionInit description); readonly attribute RTCSessionDescription? localDescription; readonly attribute RTCSessionDescription? currentLocalDescription;