Bug 801257 - System Message API: Page would wrongly handle messages to be sent to other pages. r=fabrice

This commit is contained in:
Gene Lian 2012-10-13 16:05:42 +08:00
Родитель 78caaeda9b
Коммит 15c4997ad6
1 изменённых файлов: 2 добавлений и 1 удалений

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

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