mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Remove seemingly unused crypto.alert() API in favor of window.alert() that we all know and love. r+sr=jst@mozilla.org
This commit is contained in:
parent
c21dedd075
commit
43ab1e7298
@ -38,7 +38,7 @@
|
||||
|
||||
#include "domstubs.idl"
|
||||
|
||||
[scriptable, uuid(d2b675a5-f05b-4172-bac2-24cc39ffd398)]
|
||||
[scriptable, uuid(12b6d899-2aed-4ea9-8c02-2223ab7ab592)]
|
||||
interface nsIDOMCrypto : nsISupports
|
||||
{
|
||||
readonly attribute DOMString version;
|
||||
@ -52,7 +52,6 @@ interface nsIDOMCrypto : nsISupports
|
||||
DOMString random(in long numBytes);
|
||||
DOMString signText(in DOMString stringToSign,
|
||||
in DOMString caOption /* ... */);
|
||||
void alert(in DOMString message);
|
||||
void logout();
|
||||
void disableRightClick();
|
||||
};
|
||||
|
@ -2860,15 +2860,6 @@ nsCrypto::SignText(const nsAString& aStringToSign, const nsAString& aCaOption,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsCrypto::Alert(const nsAString& aMessage)
|
||||
{
|
||||
PRUnichar *message = ToNewUnicode(aMessage);
|
||||
alertUser(message);
|
||||
nsMemory::Free(message);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//Logout out of all installed PKCS11 tokens.
|
||||
NS_IMETHODIMP
|
||||
nsCrypto::Logout()
|
||||
|
Loading…
x
Reference in New Issue
Block a user