зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801257 - System Message API: Page would wrongly handle messages to be sent to other pages. r=fabrice
This commit is contained in:
Родитель
78caaeda9b
Коммит
15c4997ad6
|
@ -174,8 +174,9 @@ SystemMessageManager.prototype = {
|
|||
" (" + this._manifest + ")");
|
||||
|
||||
let msg = aMessage.json;
|
||||
if (msg.manifest != this._manifest)
|
||||
if (msg.manifest != this._manifest || msg.uri != this._uri) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send an acknowledgement to parent to clean up the pending message,
|
||||
// so a re-launched app won't handle it again, which is redundant.
|
||||
|
|
Загрузка…
Ссылка в новой задаче