| Index: Source/devtools/protocol.json
|
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
|
| index 030efdabfc58d9df9a80086cd7b9b1c6afac7cf3..b7e18df0b228ebd2b404877d361c9dd25f4d643b 100644
|
| --- a/Source/devtools/protocol.json
|
| +++ b/Source/devtools/protocol.json
|
| @@ -4037,7 +4037,32 @@
|
| {
|
| "domain": "ServiceWorker",
|
| "hidden": true,
|
| - "types": [],
|
| + "types": [
|
| + {
|
| + "id": "ServiceWorkerRegistration",
|
| + "type": "object",
|
| + "description": "ServiceWorker registration.",
|
| + "properties": [
|
| + { "name": "registrationId", "type": "string" },
|
| + { "name": "scopeURL", "type": "string" },
|
| + { "name": "activeVersion", "optional": true, "$ref": "ServiceWorkerVersion" },
|
| + { "name": "waitingVersion", "optional": true, "$ref": "ServiceWorkerVersion" },
|
| + { "name": "installingVersion", "optional": true, "$ref": "ServiceWorkerVersion" }
|
| + ]
|
| + },
|
| + {
|
| + "id": "ServiceWorkerVersion",
|
| + "type": "object",
|
| + "description": "ServiceWorker version.",
|
| + "properties": [
|
| + { "name": "versionId", "type": "string" },
|
| + { "name": "registrationId", "type": "string" },
|
| + { "name": "scriptURL", "type": "string" },
|
| + { "name": "runningStatus", "type": "string", "enum": ["stopped", "starting", "running", "stopping"] },
|
| + { "name": "status", "type": "string", "enum": ["new", "installing", "installed", "activating", "activated", "redundant"] }
|
| + ]
|
| + }
|
| + ],
|
| "commands": [
|
| {
|
| "name": "enable",
|
| @@ -4079,6 +4104,27 @@
|
| { "name": "message", "type": "string" }
|
| ],
|
| "handlers": ["browser"]
|
| + },
|
| + {
|
| + "name": "workerRegistrationUpdated",
|
| + "parameters": [
|
| + { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } }
|
| + ],
|
| + "handlers": ["browser"]
|
| + },
|
| + {
|
| + "name": "workerVersionUpdated",
|
| + "parameters": [
|
| + { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } }
|
| + ],
|
| + "handlers": ["browser"]
|
| + },
|
| + {
|
| + "name": "workerRegistrationDeleted",
|
| + "parameters": [
|
| + { "name": "registrationId", "type": "string" }
|
| + ],
|
| + "handlers": ["browser"]
|
| }
|
| ]
|
| },
|
|
|