Files
tubestation/testing/web-platform/tests/interfaces/BackgroundSync.idl
Luke Bjerring e1a38a94bc Bug 1452643 [wpt PR 9751] - Update the BackgroundSync IDL file, a=testonly
Automatic update from web-platform-testsUpdate the BackgroundSync IDL file (#9751)

* Add BackgroundSync idl file

wpt-commits: 99b9072bdc9d9098f85f24745d855a18e69dd6c2
wpt-pr: 9751
wpt-commits: 99b9072bdc9d9098f85f24745d855a18e69dd6c2
wpt-pr: 9751
2018-04-15 09:31:57 +01:00

29 lines
795 B
Plaintext

// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Web Background Synchronization spec.
// See https://wicg.github.io/BackgroundSync/spec/
partial interface ServiceWorkerRegistration {
readonly attribute SyncManager sync;
};
[Exposed=(Window,Worker)]
interface SyncManager {
Promise<void> register(DOMString tag);
Promise<sequence<DOMString>> getTags();
};
partial interface ServiceWorkerGlobalScope {
attribute EventHandler onsync;
};
[Constructor(DOMString type, SyncEventInit init), Exposed=ServiceWorker]
interface SyncEvent : ExtendableEvent {
readonly attribute DOMString tag;
readonly attribute boolean lastChance;
};
dictionary SyncEventInit : ExtendableEventInit {
required DOMString tag;
boolean lastChance = false;
};