Skip to content

Commit

Permalink
Bug 924971 - [Contacts] Trying to add a contact as a recipient opens …
Browse files Browse the repository at this point in the history
…contact details instead of returning to Messages app. r=fabrice
  • Loading branch information
ferjm committed Oct 17, 2013
1 parent 3228d56 commit b206e0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/base/DOMRequestHelper.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ DOMRequestIpcHelper.prototype = {
* queryInterface method and adds at least one weak listener to the Message
* 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:
Expand Down
3 changes: 3 additions & 0 deletions dom/messages/SystemMessageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ SystemMessageManager.prototype = {
if (aTopic === kSystemMessageInternalReady) {
this._registerManifest();
}

// Call the DOMRequestIpcHelper.observe method.
this.__proto__.__proto__.observe.call(this, aSubject, aTopic, aData);
},

_registerManifest: function sysMessMgr_registerManifest() {
Expand Down

0 comments on commit b206e0b

Please sign in to comment.