Skip to content

Commit

Permalink
Trim periodic-background-sync.idl.patch to what remains (w3c#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip authored Apr 12, 2021
1 parent 0ae9b03 commit 777d340
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions ed/idlpatches/periodic-background-sync.idl.patch
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

0 comments on commit 777d340

Please sign in to comment.