Bug 783825 - Fix b2g breakage after bug 553102 [r=cjones]

This commit is contained in:
Fabrice Desré
2012-08-18 19:50:44 -07:00
parent fe359ab696
commit 47317c504a
7 changed files with 58 additions and 32 deletions

View File

@@ -11,6 +11,7 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/DOMRequestHelper.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/ObjectWrapper.jsm");
XPCOMUtils.defineLazyGetter(this, "cpmm", function() {
return Cc["@mozilla.org/childprocessmessagemanager;1"]
@@ -63,7 +64,7 @@ SystemMessageManager.prototype = {
}
}
aHandler.handleMessage(aMessage);
aHandler.handleMessage(ObjectWrapper.wrap(aMessage, this._window));
},
mozSetMessageHandler: function sysMessMgr_setMessageHandler(aType, aHandler) {
@@ -175,6 +176,7 @@ SystemMessageManager.prototype = {
let appsService = Cc["@mozilla.org/AppsService;1"]
.getService(Ci.nsIAppsService);
this._manifest = appsService.getManifestURLByLocalId(principal.appId);
this._window = aWindow;
},
classID: Components.ID("{bc076ea0-609b-4d8f-83d7-5af7cbdc3bb2}"),