ServiceWorker Domain
Methods
Events
Types
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.stopAllWorkers #
Events
ServiceWorker.workerRegistrationUpdated #
parameters
- registrations
-
array[ ServiceWorkerRegistration ]
Types
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