mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1128479 - Update Crypto.webidl to recent interface changes r=smaug
This commit is contained in:
parent
14292995ea
commit
448def84fa
@ -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);
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user