Bug 1155923 - Temporarily restoring moz-prefixed interface, r=jesup,smaug

This commit is contained in:
Martin Thomson 2015-09-28 11:25:04 -07:00
parent 6c7392347e
commit 1defbdb0b2
6 changed files with 35 additions and 13 deletions

View File

@ -41,4 +41,6 @@ DEPRECATED_OPERATION(DataContainerEvent)
DEPRECATED_OPERATION(Window_Controllers)
DEPRECATED_OPERATION(ImportXULIntoContent)
DEPRECATED_OPERATION(PannerNodeDoppler)
DEPRECATED_OPERATION(NavigatorGetUserMedia)
DEPRECATED_OPERATION(WebrtcDeprecatedPrefix)
DEPRECATED_OPERATION(AppCache)

View File

@ -180,3 +180,5 @@ ClientRequestOpaqueInterception=A ServiceWorker passed an opaque Response to Fet
BadOpaqueRedirectInterception=A ServiceWorker passed an opaqueredirect Response to FetchEvent.respondWith() while FetchEvent.request was not a navigation request.
# LOCALIZATION NOTE: Do not translate "ServiceWorker" or "FetchEvent.preventDefault()".
InterceptionCanceled=ServiceWorker canceled network interception by calling FetchEvent.preventDefault().
WebrtcDeprecatedPrefixWarning=WebRTC interfaces with the "moz" prefix (mozRTCPeerConnection, mozRTCSessionDescription, mozRTCIceCandidate) have been deprecated.
NavigatorGetUserMediaWarning=navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia

View File

@ -117,6 +117,9 @@ var ecmaGlobals =
var legacyMozPrefixedInterfaces =
[
"mozContact",
"mozRTCIceCandidate",
"mozRTCPeerConnection",
"mozRTCSessionDescription",
];
// IMPORTANT: Do not change the list above without review from a DOM peer,
// except to remove items from it!
@ -809,6 +812,12 @@ var interfaceNamesInGlobalScope =
{name: "MozOtaStatusEvent", b2g: true},
// IMPORTANT: Do not change this list without review from a DOM peer!
"MozPowerManager",
// IMPORTANT: Do not change this list without review from a DOM peer!
"mozRTCIceCandidate",
// IMPORTANT: Do not change this list without review from a DOM peer!
"mozRTCPeerConnection",
// IMPORTANT: Do not change this list without review from a DOM peer!
"mozRTCSessionDescription",
// IMPORTANT: Do not change this list without review from a DOM peer!
"MozSettingsEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!

View File

@ -6,16 +6,24 @@
* This file includes all the deprecated mozRTC prefixed interfaces.
*
* The declaration of each should match the declaration of the real, unprefixed
* interface.
* interface. These aliases will be removed at some point (Bug 1155923).
*/
[NoInterfaceObject]
interface WebrtcDeprecated
{
[Deprecated="WebrtcDeprecatedPrefix", Pref="media.peerconnection.enabled"]
readonly attribute object mozRTCIceCandidate;
[Deprecated="WebrtcDeprecatedPrefix", Pref="media.peerconnection.enabled"]
readonly attribute object mozRTCPeerConnection;
[Deprecated="WebrtcDeprecatedPrefix", Pref="media.peerconnection.enabled"]
readonly attribute object mozRTCSessionDescription;
};
[Deprecated="WebrtcDeprecatedPrefix",
Pref="media.peerconnection.enabled",
JSImplementation="@mozilla.org/dom/rtcicecandidate;1",
Constructor(optional RTCIceCandidateInit candidateInitDict)]
interface mozRTCIceCandidate : RTCIceCandidate {};
[Deprecated="WebrtcDeprecatedPrefix",
Pref="media.peerconnection.enabled",
JSImplementation="@mozilla.org/dom/peerconnection;1",
Constructor (optional RTCConfiguration configuration,
optional object? constraints)]
interface mozRTCPeerConnection : RTCPeerConnection {};
[Deprecated="WebrtcDeprecatedPrefix",
Pref="media.peerconnection.enabled",
JSImplementation="@mozilla.org/dom/rtcsessiondescription;1",
Constructor(optional RTCSessionDescriptionInit descriptionInitDict)]
interface mozRTCSessionDescription : RTCSessionDescription {};

View File

@ -484,4 +484,3 @@ interface ChromeWindow {
Window implements ChromeWindow;
Window implements GlobalFetch;
Window implements ImageBitmapFactories;
Window implements WebrtcDeprecated;

View File

@ -149,3 +149,5 @@ SyncXMLHttpRequestWarning=Synchronous XMLHttpRequest on the main thread is depre
DataContainerEventWarning=Use of DataContainerEvent is deprecated. Use CustomEvent instead.
# LOCALIZATION NOTE: Do not translate "Worker".
EmptyWorkerSourceWarning=Attempting to create a Worker from an empty source. This is probably unintentional.
WebrtcDeprecatedPrefixWarning=WebRTC interfaces with the "moz" prefix (mozRTCPeerConnection, mozRTCSessionDescription, mozRTCIceCandidate) have been deprecated.
NavigatorGetUserMediaWarning=navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia