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:
Perry Jiang 2019-08-20 15:20:47 +00:00
parent a7ce0c3b9e
commit 4d21c36f04
2 changed files with 5 additions and 0 deletions

View File

@ -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,
};
},

View File

@ -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;