From 15c4997ad6fb29d8b5a7e151a45a05514c567f2e Mon Sep 17 00:00:00 2001 From: Gene Lian Date: Sat, 13 Oct 2012 16:05:42 +0800 Subject: [PATCH] Bug 801257 - System Message API: Page would wrongly handle messages to be sent to other pages. r=fabrice --- dom/messages/SystemMessageManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/messages/SystemMessageManager.js b/dom/messages/SystemMessageManager.js index 1a8a3afda248..43a678b794f0 100644 --- a/dom/messages/SystemMessageManager.js +++ b/dom/messages/SystemMessageManager.js @@ -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.