Chrome DevTools Protocol

Methods

ServiceWorker.deliverPushMessage

parameters
origin
string
registrationId
RegistrationID
data
string

ServiceWorker.disable

ServiceWorker.dispatchPeriodicSyncEvent

parameters
origin
string
registrationId
RegistrationID
tag
string

ServiceWorker.dispatchSyncEvent

parameters
origin
string
registrationId
RegistrationID
tag
string
lastChance
boolean

ServiceWorker.enable

ServiceWorker.inspectWorker

parameters
versionId
string

ServiceWorker.setForceUpdateOnPageLoad

parameters
forceUpdateOnPageLoad
boolean

ServiceWorker.skipWaiting

parameters
scopeURL
string

ServiceWorker.startWorker

parameters
scopeURL
string

ServiceWorker.stopAllWorkers

ServiceWorker.stopWorker

parameters
versionId
string

ServiceWorker.unregister

parameters
scopeURL
string

ServiceWorker.updateRegistration

parameters
scopeURL
string

Events

ServiceWorker.workerErrorReported

parameters
errorMessage
ServiceWorkerErrorMessage

ServiceWorker.workerRegistrationUpdated

parameters
registrations
array[ ServiceWorkerRegistration ]

ServiceWorker.workerVersionUpdated

parameters
versions
array[ ServiceWorkerVersion ]

Types

ServiceWorker.RegistrationID

Type: string

ServiceWorker.ServiceWorkerErrorMessage

ServiceWorker error message.

Type: object

properties
errorMessage
string
registrationId
RegistrationID
versionId
string
sourceURL
string
lineNumber
integer
columnNumber
integer

ServiceWorker.ServiceWorkerRegistration

ServiceWorker registration.

Type: object

properties
registrationId
RegistrationID
scopeURL
string
isDeleted
boolean

ServiceWorker.ServiceWorkerVersion

ServiceWorker version.

Type: object

properties
versionId
string
registrationId
RegistrationID
scriptURL
string
runningStatus
ServiceWorkerVersionRunningStatus
status
ServiceWorkerVersionStatus
scriptLastModified
number

The Last-Modified header value of the main script.

scriptResponseTime
number

The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.

controlledClients
array[ Target.TargetID ]
targetId
Target.TargetID
routerRules
string

ServiceWorker.ServiceWorkerVersionRunningStatus

Allowed Values: stopped, starting, running, stopping

Type: string

ServiceWorker.ServiceWorkerVersionStatus

Allowed Values: new, installing, installed, activating, activated, redundant

Type: string