Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: Source/modules/serviceworkers/ServiceWorkerRegistration.idl

Issue 424693004: ServiceWorker: Add 'updatefound' and version attributes on SWRegistration (Blink) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/ServiceWorkerRegistration.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.idl b/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
index 5749387f7c078788d3877d5962bdc469034f9284..869808d342a46a89fcf5ed79109dae11f7c9193d 100644
--- a/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
+++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.idl
@@ -8,7 +8,12 @@
RuntimeEnabled=ServiceWorker,
WillBeGarbageCollected,
] interface ServiceWorkerRegistration : EventTarget {
+ [Unforgeable] readonly attribute ServiceWorker? installing;
+ [Unforgeable] readonly attribute ServiceWorker? waiting;
+ [Unforgeable] readonly attribute ServiceWorker? active;
readonly attribute ScalarValueString scope;
[CallWith=ScriptState] Promise unregister();
+
+ attribute EventHandler onupdatefound;
};

Powered by Google App Engine
This is Rietveld 408576698