mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 975144 - WebIDL changes for identity error handling refactor, r=jib,bz
This commit is contained in:
parent
b60cdaacee
commit
d6c2324c6d
@ -393,14 +393,6 @@ const kEventConstructors = {
|
||||
return new RTCPeerConnectionIceEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
RTCPeerConnectionIdentityEvent: { create: function (aName, aProps) {
|
||||
return new RTCPeerConnectionIdentityEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
RTCPeerConnectionIdentityErrorEvent: { create: function (aName, aProps) {
|
||||
return new RTCPeerConnectionIdentityErrorEvent(aName, aProps);
|
||||
},
|
||||
},
|
||||
ScrollAreaEvent: { create: function (aName, aProps) {
|
||||
var e = document.createEvent("scrollareaevent");
|
||||
e.initScrollAreaEvent(aName, aProps.bubbles, aProps.cancelable,
|
||||
|
@ -83,7 +83,7 @@ interface mozRTCPeerConnection : EventTarget {
|
||||
optional DOMString protocol,
|
||||
optional DOMString username);
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
void getIdentityAssertion();
|
||||
Promise<DOMString> getIdentityAssertion();
|
||||
Promise<mozRTCSessionDescription> createOffer (optional RTCOfferOptions options);
|
||||
Promise<mozRTCSessionDescription> createAnswer ();
|
||||
Promise<void> setLocalDescription (mozRTCSessionDescription description);
|
||||
@ -96,7 +96,9 @@ interface mozRTCPeerConnection : EventTarget {
|
||||
readonly attribute RTCIceGatheringState iceGatheringState;
|
||||
readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
readonly attribute RTCIdentityAssertion? peerIdentity;
|
||||
readonly attribute Promise<RTCIdentityAssertion> peerIdentity;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
readonly attribute DOMString? idpLoginUrl;
|
||||
|
||||
[ChromeOnly]
|
||||
attribute DOMString id;
|
||||
@ -138,14 +140,6 @@ interface mozRTCPeerConnection : EventTarget {
|
||||
RTCDataChannel createDataChannel (DOMString label,
|
||||
optional RTCDataChannelInit dataChannelDict);
|
||||
attribute EventHandler ondatachannel;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
attribute EventHandler onidentityresult;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
attribute EventHandler onpeeridentity;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
attribute EventHandler onidpassertionerror;
|
||||
[Pref="media.peerconnection.identity.enabled"]
|
||||
attribute EventHandler onidpvalidationerror;
|
||||
};
|
||||
|
||||
// Legacy callback API
|
||||
|
@ -1,23 +0,0 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Proposed only, not in spec yet:
|
||||
* http://lists.w3.org/Archives/Public/public-webrtc/2013Dec/0104.html
|
||||
*/
|
||||
|
||||
dictionary RTCPeerConnectionIdentityErrorEventInit : EventInit {
|
||||
DOMString idp = "";
|
||||
DOMString protocol = "";
|
||||
DOMString? loginUrl = null;
|
||||
};
|
||||
|
||||
[ChromeOnly,
|
||||
Constructor(DOMString type,
|
||||
optional RTCPeerConnectionIdentityErrorEventInit eventInitDict)]
|
||||
interface RTCPeerConnectionIdentityErrorEvent : Event {
|
||||
readonly attribute DOMString idp;
|
||||
readonly attribute DOMString protocol;
|
||||
readonly attribute DOMString? loginUrl;
|
||||
};
|
@ -1,19 +0,0 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* Proposed only, not in spec yet:
|
||||
* http://lists.w3.org/Archives/Public/public-webrtc/2013Dec/0104.html
|
||||
*/
|
||||
|
||||
dictionary RTCPeerConnectionIdentityEventInit : EventInit {
|
||||
DOMString? assertion = null;
|
||||
};
|
||||
|
||||
[ChromeOnly,
|
||||
Constructor(DOMString type,
|
||||
optional RTCPeerConnectionIdentityEventInit eventInitDict)]
|
||||
interface RTCPeerConnectionIdentityEvent : Event {
|
||||
readonly attribute DOMString? assertion;
|
||||
};
|
@ -739,8 +739,6 @@ GENERATED_EVENTS_WEBIDL_FILES = [
|
||||
'RecordErrorEvent.webidl',
|
||||
'RTCDataChannelEvent.webidl',
|
||||
'RTCPeerConnectionIceEvent.webidl',
|
||||
'RTCPeerConnectionIdentityErrorEvent.webidl',
|
||||
'RTCPeerConnectionIdentityEvent.webidl',
|
||||
'ScrollViewChangeEvent.webidl',
|
||||
'SelectionStateChangedEvent.webidl',
|
||||
'StyleRuleChangeEvent.webidl',
|
||||
|
Loading…
Reference in New Issue
Block a user