diff --git a/content/base/src/nsGkAtomList.h b/content/base/src/nsGkAtomList.h index 7605d1737ee..f2f10917fd3 100644 --- a/content/base/src/nsGkAtomList.h +++ b/content/base/src/nsGkAtomList.h @@ -720,7 +720,6 @@ GK_ATOM(onheld, "onheld") GK_ATOM(onhfpstatuschanged, "onhfpstatuschanged") GK_ATOM(onholding, "onholding") GK_ATOM(oniccinfochange, "oniccinfochange") -GK_ATOM(onicccardlockerror, "onicccardlockerror") GK_ATOM(onincoming, "onincoming") GK_ATOM(oninput, "oninput") GK_ATOM(oninvalid, "oninvalid") diff --git a/content/events/test/test_all_synthetic_events.html b/content/events/test/test_all_synthetic_events.html index 409f618521e..a99ea23b011 100644 --- a/content/events/test/test_all_synthetic_events.html +++ b/content/events/test/test_all_synthetic_events.html @@ -167,10 +167,6 @@ const kEventConstructors = { return new HashChangeEvent(aName, aProps); }, }, - IccCardLockErrorEvent: { create: function (aName, aProps) { - return new IccCardLockErrorEvent(aName, aProps); - }, - }, IDBVersionChangeEvent: { create: function (aName, aProps) { return new IDBVersionChangeEvent(aName, aProps); }, diff --git a/dom/apps/src/OperatorApps.jsm b/dom/apps/src/OperatorApps.jsm index 76561b64a11..45aec39bd90 100644 --- a/dom/apps/src/OperatorApps.jsm +++ b/dom/apps/src/OperatorApps.jsm @@ -59,8 +59,6 @@ let iccListener = { notifyStkSessionEnd: function() {}, - notifyIccCardLockError: function() {}, - notifyCardStateChanged: function() {}, notifyIccInfoChanged: function() { diff --git a/dom/icc/interfaces/moz.build b/dom/icc/interfaces/moz.build index ad615b6b935..a7633574934 100644 --- a/dom/icc/interfaces/moz.build +++ b/dom/icc/interfaces/moz.build @@ -6,7 +6,6 @@ XPIDL_SOURCES += [ 'SimToolKit.idl', - 'nsIDOMIccCardLockErrorEvent.idl', 'nsIDOMIccInfo.idl', 'nsIDOMIccManager.idl', 'nsIIccProvider.idl', diff --git a/dom/icc/interfaces/nsIDOMIccCardLockErrorEvent.idl b/dom/icc/interfaces/nsIDOMIccCardLockErrorEvent.idl deleted file mode 100644 index 50fb98aecc4..00000000000 --- a/dom/icc/interfaces/nsIDOMIccCardLockErrorEvent.idl +++ /dev/null @@ -1,24 +0,0 @@ -/* 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/. */ - -#include "nsIDOMEvent.idl" - -[scriptable, builtinclass, uuid(47d4db10-a258-11e2-9e96-0800200c9a66)] -interface nsIDOMIccCardLockErrorEvent : nsIDOMEvent -{ - readonly attribute DOMString lockType; - readonly attribute long retryCount; - - [noscript] void initIccCardLockErrorEvent(in DOMString aType, - in boolean aCanBubble, - in boolean aCancelable, - in DOMString aLockType, - in int32_t aRetryCount); -}; - -dictionary IccCardLockErrorEventInit : EventInit -{ - DOMString lockType; - long retryCount; -}; diff --git a/dom/icc/interfaces/nsIDOMIccManager.idl b/dom/icc/interfaces/nsIDOMIccManager.idl index 0102e788f24..70ac262d55d 100644 --- a/dom/icc/interfaces/nsIDOMIccManager.idl +++ b/dom/icc/interfaces/nsIDOMIccManager.idl @@ -10,7 +10,7 @@ interface nsIDOMDOMRequest; interface nsIDOMEventListener; interface nsIDOMMozIccInfo; -[scriptable, builtinclass, uuid(904b92cb-dad3-416f-88cf-0291012cf448)] +[scriptable, builtinclass, uuid(6b5875dc-de44-4681-84a1-9ea12d60fbe2)] interface nsIDOMMozIccManager : nsIDOMEventTarget { /** @@ -458,16 +458,6 @@ interface nsIDOMMozIccManager : nsIDOMEventTarget */ nsIDOMDOMRequest setCardLock(in jsval info); - /** - * The 'icccardlockerror' event is notified whenever 'unlockCardLock' or - * 'setCardLock' fails. - * - * The result will be an object containing information - * about the specified lock's status, - * e.g. {lockType: "pin", retryCount: 2}. - */ - [implicit_jscontext] attribute jsval onicccardlockerror; - /** * Retrieve the number of remaining tries for unlocking the card. * diff --git a/dom/icc/interfaces/nsIIccProvider.idl b/dom/icc/interfaces/nsIIccProvider.idl index ac98ca81220..8e22c93ee2a 100644 --- a/dom/icc/interfaces/nsIIccProvider.idl +++ b/dom/icc/interfaces/nsIIccProvider.idl @@ -9,13 +9,11 @@ interface nsIDOMDOMRequest; interface nsIDOMMozIccInfo; interface nsIDOMWindow; -[scriptable, uuid(82d25440-c913-11e2-8b8b-0800200c9a66)] +[scriptable, uuid(87e9ad03-e8e2-40d1-bf28-a6d287c31b93)] interface nsIIccListener : nsISupports { void notifyStkCommand(in DOMString aMessage); void notifyStkSessionEnd(); - void notifyIccCardLockError(in DOMString lockType, - in unsigned long retryCount); void notifyCardStateChanged(); void notifyIccInfoChanged(); }; diff --git a/dom/icc/src/IccManager.cpp b/dom/icc/src/IccManager.cpp index 92709dfe8cd..f78a9783876 100644 --- a/dom/icc/src/IccManager.cpp +++ b/dom/icc/src/IccManager.cpp @@ -4,7 +4,6 @@ #include "mozilla/Services.h" #include "nsIDOMClassInfo.h" -#include "nsIDOMIccCardLockErrorEvent.h" #include "nsIDOMIccInfo.h" #include "GeneratedEvents.h" #include "IccManager.h" @@ -248,7 +247,6 @@ IccManager::UpdateContact(const nsAString& aContactType, NS_IMPL_EVENT_HANDLER(IccManager, stkcommand) NS_IMPL_EVENT_HANDLER(IccManager, stksessionend) -NS_IMPL_EVENT_HANDLER(IccManager, icccardlockerror) NS_IMPL_EVENT_HANDLER(IccManager, cardstatechange) NS_IMPL_EVENT_HANDLER(IccManager, iccinfochange) @@ -269,21 +267,6 @@ IccManager::NotifyStkSessionEnd() return DispatchTrustedEvent(NS_LITERAL_STRING("stksessionend")); } -NS_IMETHODIMP -IccManager::NotifyIccCardLockError(const nsAString& aLockType, uint32_t aRetryCount) -{ - nsCOMPtr event; - NS_NewDOMIccCardLockErrorEvent(getter_AddRefs(event), this, nullptr, nullptr); - - nsCOMPtr ce = do_QueryInterface(event); - nsresult rv = - ce->InitIccCardLockErrorEvent(NS_LITERAL_STRING("icccardlockerror"), - false, false, aLockType, aRetryCount); - NS_ENSURE_SUCCESS(rv, rv); - - return DispatchTrustedEvent(ce); -} - NS_IMETHODIMP IccManager::NotifyCardStateChanged() { diff --git a/dom/tests/mochitest/general/test_interfaces.html b/dom/tests/mochitest/general/test_interfaces.html index 9e31198d4d5..18da421e60c 100644 --- a/dom/tests/mochitest/general/test_interfaces.html +++ b/dom/tests/mochitest/general/test_interfaces.html @@ -280,7 +280,6 @@ var interfaceNamesInGlobalScope = "HTMLUListElement", "HTMLUnknownElement", "HTMLVideoElement", - {name: "IccCardLockErrorEvent", b2g: true}, "IDBCursor", "IDBCursorWithValue", "IDBDatabase", diff --git a/dom/webidl/IccCardLockError.webidl b/dom/webidl/IccCardLockError.webidl new file mode 100644 index 00000000000..fa3aca2f6dc --- /dev/null +++ b/dom/webidl/IccCardLockError.webidl @@ -0,0 +1,12 @@ +/* -*- 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/. +*/ + +[JSImplementation="@mozilla.org/dom/icccardlock-error;1", + Constructor(DOMString lockType, DOMString errorName, short retryCount)] +interface IccCardLockError : DOMError { + readonly attribute DOMString lockType; + readonly attribute short retryCount; +}; diff --git a/dom/webidl/IccCardLockErrorEvent.webidl b/dom/webidl/IccCardLockErrorEvent.webidl deleted file mode 100644 index 4b64f695441..00000000000 --- a/dom/webidl/IccCardLockErrorEvent.webidl +++ /dev/null @@ -1,18 +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/. - */ - -[Constructor(DOMString type, optional IccCardLockErrorEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"] -interface IccCardLockErrorEvent : Event -{ - readonly attribute DOMString? lockType; - readonly attribute long retryCount; -}; - -dictionary IccCardLockErrorEventInit : EventInit -{ - DOMString lockType = ""; - long retryCount = 0; -}; diff --git a/dom/webidl/moz.build b/dom/webidl/moz.build index 845309d9378..54731cb955c 100644 --- a/dom/webidl/moz.build +++ b/dom/webidl/moz.build @@ -504,7 +504,7 @@ if CONFIG['MOZ_B2G_RIL']: WEBIDL_FILES += [ 'CFStateChangeEvent.webidl', 'DataErrorEvent.webidl', - 'IccCardLockErrorEvent.webidl', + 'IccCardLockError.webidl', 'MozCellBroadcast.webidl', 'MozCellBroadcastEvent.webidl', 'MozEmergencyCbModeEvent.webidl', diff --git a/js/xpconnect/src/event_impl_gen.conf.in b/js/xpconnect/src/event_impl_gen.conf.in index 6d2361f43c6..2bf55704573 100644 --- a/js/xpconnect/src/event_impl_gen.conf.in +++ b/js/xpconnect/src/event_impl_gen.conf.in @@ -31,7 +31,6 @@ simple_events = [ #ifdef MOZ_B2G_RIL 'CFStateChangeEvent', 'DataErrorEvent', - 'IccCardLockErrorEvent', 'MozEmergencyCbModeEvent', 'MozOtaStatusEvent', 'MozWifiStatusChangeEvent',