зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1539328: Introduce new unique id for service worker actor. r=jdescottes
Depends on D25771 Differential Revision: https://phabricator.services.mozilla.com/D25772 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6f3ba76797
Коммит
f145a56427
|
@ -70,6 +70,7 @@ function getTabForUrl(url) {
|
|||
function inspectDebugTarget(type, id) {
|
||||
return async (dispatch, getState) => {
|
||||
const runtime = getCurrentRuntime(getState().runtimes);
|
||||
id = encodeURIComponent(id);
|
||||
|
||||
let url;
|
||||
if (runtime.id === RUNTIMES.THIS_FIREFOX && !isCachedActorNeeded(runtime, type, id)) {
|
||||
|
|
|
@ -95,7 +95,7 @@ class RootFront extends FrontClassWithSpec(rootSpec) {
|
|||
result.service.push({
|
||||
active: front.active,
|
||||
fetch: front.fetch,
|
||||
id: front.actorID,
|
||||
id: front.id,
|
||||
lastUpdateTime: front.lastUpdateTime,
|
||||
name: front.url,
|
||||
registrationFront: front,
|
||||
|
|
|
@ -17,6 +17,10 @@ class ServiceWorkerRegistrationFront extends
|
|||
return this._form.fetch;
|
||||
}
|
||||
|
||||
get id() {
|
||||
return this.url;
|
||||
}
|
||||
|
||||
get lastUpdateTime() {
|
||||
return this._form.lastUpdateTime;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче