forked from w3c/webref
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trim periodic-background-sync.idl.patch to what remains (w3c#165)
- Loading branch information
Showing
1 changed file
with
9 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,26 @@ | ||
From 041ef37f11822170a3a106d0d9935d2c87e61381 Mon Sep 17 00:00:00 2001 | ||
From 11a5903c3c2e6517d75f5678915c6973de3cd257 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= <[email protected]> | ||
Date: Tue, 16 Feb 2021 14:27:26 +0100 | ||
Subject: [PATCH] Fix periodic-background-sync.idl | ||
|
||
https://github.com/WICG/periodic-background-sync/pull/4 | ||
https://github.com/WICG/periodic-background-sync/pull/5 | ||
https://github.com/WICG/periodic-background-sync/pull/10 | ||
--- | ||
ed/idl/periodic-background-sync.idl | 11 +++++------ | ||
1 file changed, 5 insertions(+), 6 deletions(-) | ||
ed/idl/periodic-background-sync.idl | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/ed/idl/periodic-background-sync.idl b/ed/idl/periodic-background-sync.idl | ||
index 37a58ba14..b87475304 100644 | ||
index b039afc5a..d61ebe9b8 100644 | ||
--- a/ed/idl/periodic-background-sync.idl | ||
+++ b/ed/idl/periodic-background-sync.idl | ||
@@ -14,7 +14,7 @@ partial interface ServiceWorkerRegistration { | ||
|
||
[Exposed=(Window,Worker)] | ||
interface PeriodicSyncManager { | ||
- Promise<void> register(DOMString tag, optional BackgroundSyncOptions options); | ||
+ Promise<void> register(DOMString tag, optional BackgroundSyncOptions options = {}); | ||
- Promise<undefined> register(DOMString tag, optional BackgroundSyncOptions options); | ||
+ Promise<undefined> register(DOMString tag, optional BackgroundSyncOptions options = {}); | ||
Promise<sequence<DOMString>> getTags(); | ||
Promise<void> unregister(DOMString tag); | ||
Promise<undefined> unregister(DOMString tag); | ||
}; | ||
@@ -27,9 +27,8 @@ dictionary PeriodicSyncEventInit : ExtendableEventInit { | ||
required DOMString tag; | ||
}; | ||
|
||
-[ | ||
- Constructor(DOMString type, PeriodicSyncEventInit init), | ||
- Exposed=ServiceWorker | ||
-] interface PeriodicSyncEvent : ExtendableEvent { | ||
+[Exposed=ServiceWorker] | ||
+interface PeriodicSyncEvent : ExtendableEvent { | ||
+ constructor(DOMString type, PeriodicSyncEventInit init); | ||
readonly attribute DOMString tag; | ||
- }; | ||
+}; | ||
-- | ||
2.30.0.365.g02bc693789-goog | ||
2.31.1.295.g9ea45b61b8-goog | ||
|