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

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

Issue 723923002: ServiceWorker: Add support for .skipWaiting and controllerchange event(1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update property tests Created 6 years 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/ServiceWorkerContainer.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.idl b/Source/modules/serviceworkers/ServiceWorkerContainer.idl
index 27839ec7c8fe088c171a637291dd7e73bbbae81a..6c53d299e582c819ec0a2e896700f53244da5406 100644
--- a/Source/modules/serviceworkers/ServiceWorkerContainer.idl
+++ b/Source/modules/serviceworkers/ServiceWorkerContainer.idl
@@ -33,11 +33,12 @@
RuntimeEnabled=ServiceWorker,
GarbageCollected,
TypeChecking=Interface,
-] interface ServiceWorkerContainer {
+] interface ServiceWorkerContainer : EventTarget {
[Unforgeable] readonly attribute ServiceWorker? controller;
[CallWith=ScriptState] readonly attribute Promise<ServiceWorkerRegistration> ready;
[CallWith=ScriptState, ImplementedAs=registerServiceWorker] Promise<ServiceWorkerRegistration> register(USVString url, optional RegistrationOptions options);
-
[CallWith=ScriptState] Promise<ServiceWorkerRegistration> getRegistration(optional USVString documentURL = "");
+
+ attribute EventHandler oncontrollerchange;
};
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698