Bug 924971 - [Contacts] Trying to add a contact as a recipient opens contact details instead of returning to Messages app. r=fabrice

This commit is contained in:
Fernando Jiménez
2013-10-18 12:58:24 +02:00
parent e58e9c5ff5
commit 2b9c20646f
2 changed files with 5 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ DOMRequestIpcHelper.prototype = {
* queryInterface method and adds at least one weak listener to the Message * queryInterface method and adds at least one weak listener to the Message
* Manager MUST implement Ci.nsISupportsWeakReference. * Manager MUST implement Ci.nsISupportsWeakReference.
*/ */
QueryInterface: XPCOMUtils.generateQI([Ci.nsISupportsWeakReference]), QueryInterface: XPCOMUtils.generateQI([Ci.nsISupportsWeakReference,
Ci.nsIObserver]),
/** /**
* 'aMessages' is expected to be an array of either: * 'aMessages' is expected to be an array of either:

View File

@@ -284,6 +284,9 @@ SystemMessageManager.prototype = {
if (aTopic === kSystemMessageInternalReady) { if (aTopic === kSystemMessageInternalReady) {
this._registerManifest(); this._registerManifest();
} }
// Call the DOMRequestIpcHelper.observe method.
this.__proto__.__proto__.observe.call(this, aSubject, aTopic, aData);
}, },
_registerManifest: function sysMessMgr_registerManifest() { _registerManifest: function sysMessMgr_registerManifest() {