author | Chuck Lee <chulee@mozilla.com> |
Tue, 15 Apr 2014 17:17:40 +0800 | |
changeset 181964 | 6781b96cca1c3f400999561a0651cfaa1b937dcd |
parent 181963 | 5893e38d5a525c10e299721d754533fbb3a0f9ae |
child 181965 | 947690de7b62135a04c84d6c86c7cf9f46f687dc |
push id | 43178 |
push user | cbook@mozilla.com |
push date | Wed, 07 May 2014 12:13:50 +0000 |
treeherder | mozilla-inbound@36b2f696ff10 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | mrbkap |
bugs | 917175 |
milestone | 32.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/MozWifiManager.webidl | file | annotate | diff | comparison | revisions | |
dom/wifi/nsIWifiCertService.idl | file | annotate | diff | comparison | revisions |
--- a/dom/webidl/MozWifiManager.webidl +++ b/dom/webidl/MozWifiManager.webidl @@ -242,16 +242,24 @@ interface MozWifiManager : EventTarget { * string as value. * request.result[USAGE] = [CA_NICKNAME1, CA_NICKNAME2, ...] * USAGE string includes: "ServerCert". * onerror: We have failed to list certificate. */ DOMRequest getImportedCerts(); /** + * Delete an imported certificate. + * @param certNickname Nickname of imported to be deleted. + * onsuccess: We have successfully deleted certificate. + * onerror: We have failed to delete certificate. + */ + DOMRequest deleteCert(DOMString certNickname); + + /** * Returns whether or not wifi is currently enabled. */ readonly attribute boolean enabled; /** * Returns the MAC address of the wifi adapter. */ readonly attribute DOMString macAddress;
--- a/dom/wifi/nsIWifiCertService.idl +++ b/dom/wifi/nsIWifiCertService.idl @@ -2,17 +2,17 @@ * 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 "nsISupports.idl" interface nsIDOMBlob; interface nsIWifiEventListener; -[scriptable, uuid(49e8e04e-eb05-4c92-84a6-7af32310f0c3)] +[scriptable, uuid(2712a791-f720-484d-8820-c4085629f657)] interface nsIWifiCertService : nsISupports { const unsigned short WIFI_CERT_USAGE_FLAG_SERVER = 0x01; const unsigned short WIFI_CERT_USAGE_FLAG_USER = 0x02; void start(in nsIWifiEventListener listener); void shutdown(); @@ -27,9 +27,20 @@ interface nsIWifiCertService : nsISuppor * Password of certificate. * @param certNickname * User assigned nickname for imported certificate. */ void importCert(in long id, in nsIDOMBlob certBlob, in DOMString certPassword, in DOMString certNickname); + + /** + * Delete an imported certificate file + * + * @param id + * Request ID. + * @param certNickname + * Certificate nickname to delete. + */ + void deleteCert(in long id, + in DOMString certNickname); };