Skip to content

Commit

Permalink
Bug 975144 - WebIDL changes for identity error handling refactor, r=j…
Browse files Browse the repository at this point in the history
…ib,bz
  • Loading branch information
martinthomson committed Feb 21, 2015
1 parent 6146b91 commit e92b44d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 62 deletions.
8 changes: 0 additions & 8 deletions dom/events/test/test_all_synthetic_events.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,6 @@
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,
Expand Down
14 changes: 4 additions & 10 deletions dom/webidl/RTCPeerConnection.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down
23 changes: 0 additions & 23 deletions dom/webidl/RTCPeerConnectionIdentityErrorEvent.webidl

This file was deleted.

19 changes: 0 additions & 19 deletions dom/webidl/RTCPeerConnectionIdentityEvent.webidl

This file was deleted.

2 changes: 0 additions & 2 deletions dom/webidl/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,6 @@ GENERATED_EVENTS_WEBIDL_FILES = [
'RecordErrorEvent.webidl',
'RTCDataChannelEvent.webidl',
'RTCPeerConnectionIceEvent.webidl',
'RTCPeerConnectionIdentityErrorEvent.webidl',
'RTCPeerConnectionIdentityEvent.webidl',
'ScrollViewChangeEvent.webidl',
'SelectionStateChangedEvent.webidl',
'StyleRuleChangeEvent.webidl',
Expand Down

0 comments on commit e92b44d

Please sign in to comment.