Automatic update from web-platform-tests Update interfaces/background-sync.idl (#27928) Source: https://github.com/w3c/webref/blob/538a4b5/ed/idl/background-sync.idl Build: https://travis-ci.org/w3c/webref/builds/219282167 -- wpt-commits: bb50fa7c745474552163e2c21c970dcbb8c02d74 wpt-pr: 27928
31 lines
837 B
Plaintext
31 lines
837 B
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// Source: Web Background Synchronization (https://wicg.github.io/background-sync/spec/)
|
|
|
|
partial interface ServiceWorkerRegistration {
|
|
readonly attribute SyncManager sync;
|
|
};
|
|
|
|
[Exposed=(Window,Worker)]
|
|
interface SyncManager {
|
|
Promise<undefined> register(DOMString tag);
|
|
Promise<sequence<DOMString>> getTags();
|
|
};
|
|
|
|
partial interface ServiceWorkerGlobalScope {
|
|
attribute EventHandler onsync;
|
|
};
|
|
|
|
[Exposed=ServiceWorker]
|
|
interface SyncEvent : ExtendableEvent {
|
|
constructor(DOMString type, SyncEventInit init);
|
|
readonly attribute DOMString tag;
|
|
readonly attribute boolean lastChance;
|
|
};
|
|
|
|
dictionary SyncEventInit : ExtendableEventInit {
|
|
required DOMString tag;
|
|
boolean lastChance = false;
|
|
};
|