mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 01:00:41 +00:00
Bug 944234 - Same message type with different client id should be treated as a different message. r=hsinyi
This commit is contained in:
parent
e81e85b392
commit
0a8d9b2d6f
@ -302,11 +302,12 @@ XPCOMUtils.defineLazyGetter(this, "gMessageManager", function () {
|
||||
let msg = { topic : topic,
|
||||
message : message,
|
||||
options : options };
|
||||
// Remove previous queued message of same message type, only one message
|
||||
// per message type is allowed in queue.
|
||||
// Remove previous queued message with the same message type and client Id
|
||||
// , only one message per (message type + client Id) is allowed in queue.
|
||||
let messageQueue = this.targetMessageQueue;
|
||||
for(let i = 0; i < messageQueue.length; i++) {
|
||||
if (messageQueue[i].message === message) {
|
||||
if (messageQueue[i].message === message &&
|
||||
messageQueue[i].options.clientId === options.clientId) {
|
||||
messageQueue.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user