mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
Merge pull request #724 from eminence/partial_mixin
Fix missing WindowOrWorkerGlobalScope partial interface mixins.
This commit is contained in:
commit
1fd52b08a3
@ -43,25 +43,25 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// https://fetch.spec.whatwg.org/#fetch-method
|
// https://fetch.spec.whatwg.org/#fetch-method
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
[NewObject, NeedsCallerType]
|
[NewObject, NeedsCallerType]
|
||||||
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
|
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object
|
// https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
readonly attribute boolean isSecureContext;
|
readonly attribute boolean isSecureContext;
|
||||||
};
|
};
|
||||||
|
|
||||||
// http://w3c.github.io/IndexedDB/#factory-interface
|
// http://w3c.github.io/IndexedDB/#factory-interface
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
// readonly attribute IDBFactory indexedDB;
|
// readonly attribute IDBFactory indexedDB;
|
||||||
[Throws]
|
[Throws]
|
||||||
readonly attribute IDBFactory? indexedDB;
|
readonly attribute IDBFactory? indexedDB;
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://w3c.github.io/ServiceWorker/#self-caches
|
// https://w3c.github.io/ServiceWorker/#self-caches
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
[Throws, Func="mozilla::dom::DOMPrefs::DOMCachesEnabled", SameObject]
|
[Throws, Func="mozilla::dom::DOMPrefs::DOMCachesEnabled", SameObject]
|
||||||
readonly attribute CacheStorage caches;
|
readonly attribute CacheStorage caches;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user