Bug 1128479 - Update Crypto.webidl to recent interface changes r=smaug

This commit is contained in:
Tim Taubert 2015-02-02 13:49:01 +01:00
parent 14292995ea
commit 448def84fa
2 changed files with 9 additions and 10 deletions

View File

@ -4,18 +4,20 @@
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* http://www.w3.org/TR/WebCryptoAPI/
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
*/
[NoInterfaceObject]
interface RandomSource {
[Throws]
ArrayBufferView getRandomValues(ArrayBufferView array);
interface GlobalCrypto {
//[Throws] readonly attribute Crypto crypto;
[Throws] readonly attribute nsIDOMCrypto crypto;
};
Crypto implements RandomSource;
//[Exposed=(Window,Worker)]
interface Crypto {
[Pref="dom.webcrypto.enabled"]
readonly attribute SubtleCrypto subtle;
[Throws]
ArrayBufferView getRandomValues(ArrayBufferView array);
};

View File

@ -230,10 +230,7 @@ partial interface Window {
};
// https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html
partial interface Window {
//[Throws] readonly attribute Crypto crypto;
[Throws] readonly attribute nsIDOMCrypto crypto;
};
Window implements GlobalCrypto;
#ifdef MOZ_WEBSPEECH
// http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html