mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1552945 - Expose a ServiceWorker's WorkerPrivate's ID on its ServiceWorkerFront. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D31904 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a7ce0c3b9e
commit
4d21c36f04
@ -25,6 +25,7 @@ const ServiceWorkerActor = protocol.ActorClassWithSpec(serviceWorkerSpec, {
|
||||
url: this._worker.scriptSpec,
|
||||
state: this._worker.state,
|
||||
fetch: this._worker.handlesFetchEvents,
|
||||
id: this._worker.id,
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -24,6 +24,10 @@ class ServiceWorkerFront extends FrontClassWithSpec(serviceWorkerSpec) {
|
||||
return this._form.state;
|
||||
}
|
||||
|
||||
get id() {
|
||||
return this._form.id;
|
||||
}
|
||||
|
||||
form(form) {
|
||||
this.actorID = form.actor;
|
||||
this._form = form;
|
||||
|
Loading…
Reference in New Issue
Block a user