Methods

Chrome DevTools

ServiceWorker.deliverPushMessage #

Parameters

origin
string
registrationId
data
string

Chrome DevTools

ServiceWorker.disable #


Chrome DevTools

ServiceWorker.dispatchPeriodicSyncEvent #

Parameters

origin
string
registrationId
tag
string

Chrome DevTools

ServiceWorker.dispatchSyncEvent #

Parameters

origin
string
registrationId
tag
string
lastChance
boolean

Chrome DevTools

ServiceWorker.enable #


Chrome DevTools

ServiceWorker.inspectWorker #

Parameters

versionId
string

Chrome DevTools

ServiceWorker.setForceUpdateOnPageLoad #

Parameters

forceUpdateOnPageLoad
boolean

Chrome DevTools

ServiceWorker.skipWaiting #

Parameters

scopeURL
string

Chrome DevTools

ServiceWorker.startWorker #

Parameters

scopeURL
string

Chrome DevTools

ServiceWorker.stopAllWorkers #


Chrome DevTools

ServiceWorker.stopWorker #

Parameters

versionId
string

Chrome DevTools

ServiceWorker.unregister #

Parameters

scopeURL
string

Chrome DevTools

ServiceWorker.updateRegistration #

Parameters

scopeURL
string

Events

Chrome DevTools

ServiceWorker.workerErrorReported #

Parameters


Chrome DevTools

ServiceWorker.workerRegistrationUpdated #

Parameters

registrations

Chrome DevTools

ServiceWorker.workerVersionUpdated #

Parameters

versions

Types

Chrome DevTools

ServiceWorker.RegistrationID #

Type: string


Chrome DevTools

ServiceWorker.ServiceWorkerErrorMessage #

ServiceWorker error message.

Type: object

Properties

errorMessage
string
registrationId
versionId
string
sourceURL
string
lineNumber
integer
columnNumber
integer

Chrome DevTools

ServiceWorker.ServiceWorkerRegistration #

ServiceWorker registration.

Type: object

Properties

registrationId
scopeURL
string
isDeleted
boolean

Chrome DevTools

ServiceWorker.ServiceWorkerVersion #

ServiceWorker version.

Type: object

Properties

versionId
string
registrationId
scriptURL
string
scriptLastModified
Optional
number

The Last-Modified header value of the main script.

scriptResponseTime
Optional
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
Optional
targetId
Optional
routerRules
Optional
string

Chrome DevTools

ServiceWorker.ServiceWorkerVersionRunningStatus #

Type: string

Allowed values: stopped, starting, running, stopping


Chrome DevTools

ServiceWorker.ServiceWorkerVersionStatus #

Type: string

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