Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation FileSystem HeapProfiler IndexedDB Input Inspector LayerTree Memory Network Page Power Profiler Rendering Runtime ScreenOrientation Security ServiceWorker Timeline Tracing Worker
Chrome Debugger Protocol Viewer

ServiceWorker Domain

Methods

enable

disable

sendMessage

Parameters
workerId
string
message
string

stop

Parameters
workerId
string

unregister

Parameters
scopeURL
string

updateRegistration

Parameters
scopeURL
string

startWorker

Parameters
scopeURL
string

stopWorker

Parameters
versionId
string

inspectWorker

Parameters
versionId
string

skipWaiting

Parameters
versionId
string

setDebugOnStart

Parameters
debugOnStart
boolean

deliverPushMessage

Parameters
origin
string
registrationId
string
data
string

getTargetInfo

Parameters
targetId
TargetID
Return object
targetInfo
TargetInfo

activateTarget

Parameters
targetId
TargetID

Events

workerCreated

Parameters
workerId
string
url
string

workerTerminated

Parameters
workerId
string

dispatchMessage

Parameters
workerId
string
message
string

workerRegistrationUpdated

Parameters
registrations
array [ ServiceWorkerRegistration ]

workerVersionUpdated

Parameters
versions
array [ ServiceWorkerVersion ]

workerErrorReported

Parameters

debugOnStartUpdated

Parameters
debugOnStart
boolean

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.

TargetID

Type: string

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 [ TargetID ]

ServiceWorkerErrorMessage

ServiceWorker error message.

Type: object

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

TargetInfo

Type: object

Properties
type
string
title
string
url
string