stable (1.2) latest (tip-of-tree) v8-inspector (node) Home Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Page Profiler Rendering Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome Debugging Protocol Viewer - latest (tip-of-tree)

ServiceWorker Domain

Experimental

Methods

ServiceWorker. enable

ServiceWorker. disable

ServiceWorker. unregister

Parameters
scopeURL
string

ServiceWorker. updateRegistration

Parameters
scopeURL
string

ServiceWorker. startWorker

Parameters
scopeURL
string

ServiceWorker. skipWaiting

Parameters
scopeURL
string

ServiceWorker. stopWorker

Parameters
versionId
string

ServiceWorker. inspectWorker

Parameters
versionId
string

ServiceWorker. setForceUpdateOnPageLoad

Parameters
forceUpdateOnPageLoad
boolean

ServiceWorker. deliverPushMessage

Parameters
origin
string
registrationId
string
data
string

ServiceWorker. dispatchSyncEvent

Parameters
origin
string
registrationId
string
tag
string
lastChance
boolean

Events

ServiceWorker. workerRegistrationUpdated

Parameters
registrations
array [ ServiceWorkerRegistration ]

ServiceWorker. workerVersionUpdated

Parameters
versions
array [ ServiceWorkerVersion ]

ServiceWorker. workerErrorReported

Parameters

Types

ServiceWorkerRegistration

ServiceWorker registration.

Type: object

Properties
registrationId
string
scopeURL
string
isDeleted
boolean

ServiceWorkerVersionRunningStatus

Type: string

Allowed values

stopped, starting, running, stopping.

ServiceWorkerVersionStatus

Type: string

Allowed values

new, installing, installed, activating, activated, redundant.

ServiceWorkerVersion

ServiceWorker version.

Type: object

Properties
versionId
string
registrationId
string
scriptURL
string
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

ServiceWorkerErrorMessage

ServiceWorker error message.

Type: object

Properties
errorMessage
string
registrationId
string
versionId
string
sourceURL
string
lineNumber
integer
columnNumber
integer