Bug 1530861 - Acknowledged newSource events sent by remote devices on FF66 and less. r=jdescottes

newSource events used to be sent on the target actors on FF66 and before,
this is no longer the case. But we still have to accept them if we connect
to old remotes, otherwise the events are considered as a method reply
and confuses packet ordering.

Differential Revision: https://phabricator.services.mozilla.com/D21394

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2019-02-28 08:25:36 +00:00
Родитель 4ae5f536f9
Коммит 567eb5fdc3
4 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,17 @@ const addonTargetSpec = generateActorSpec({
response: RetVal("json"),
},
},
events: {
// The thread actor is no longer emitting newSource event in the name of the target
// actor (bug 1269919), but as we may still connect to older servers which still do,
// we have to keep it being mentioned here. Otherwise the event is considered as a
// response to a request and confuses the packet ordering.
// We can remove that once FF57 is no longer supported.
newSource: {
type: "newSource",
},
},
});
exports.addonTargetSpec = addonTargetSpec;

Просмотреть файл

@ -136,6 +136,15 @@ const browsingContextTargetSpecPrototype = {
workerListChanged: {
type: "workerListChanged",
},
// The thread actor is no longer emitting newSource event in the name of the target
// actor (bug 1269919), but as we may still connect to older servers which still do,
// we have to keep it being mentioned here. Otherwise the event is considered as a
// response to a request and confuses the packet ordering.
// We can remove that once FF57 is no longer supported.
newSource: {
type: "newSource",
},
},
};

Просмотреть файл

@ -24,6 +24,15 @@ const contentProcessTargetSpec = generateActorSpec({
workerListChanged: {
type: "workerListChanged",
},
// The thread actor is no longer emitting newSource event in the name of the target
// actor (bug 1269919), but as we may still connect to older servers which still do,
// we have to keep it being mentioned here. Otherwise the event is considered as a
// response to a request and confuses the packet ordering.
// We can remove that once FF57 is no longer supported.
newSource: {
type: "newSource",
},
},
});

Просмотреть файл

@ -36,6 +36,15 @@ const workerTargetSpec = generateActorSpec({
"worker-close": {
type: "close",
},
// The thread actor is no longer emitting newSource event in the name of the target
// actor (bug 1269919), but as we may still connect to older servers which still do,
// we have to keep it being mentioned here. Otherwise the event is considered as a
// response to a request and confuses the packet ordering.
// We can remove that once FF57 is no longer supported.
newSource: {
type: "newSource",
},
},
});