Bug 788751 - Bubble the manifestURL in the webapps-launch mozChromeEvent. r=vingtetun

This commit is contained in:
Etienne Segonzac 2012-09-07 17:41:26 +02:00
parent aecf172619
commit abc1d7153f
2 changed files with 3 additions and 3 deletions

View File

@ -352,8 +352,7 @@ var shell = {
this.sendChromeEvent({
type: 'open-app',
url: msg.uri,
origin: origin,
manifest: msg.manifest,
manifestURL: msg.manifest,
isActivity: (msg.type == 'activity'),
target: msg.target
});
@ -601,7 +600,7 @@ var WebappsHelper = {
shell.sendChromeEvent({
"type": "webapps-launch",
"url": manifest.fullLaunchPath(json.startPoint),
"origin": json.origin
"manifestURL": json.manifestURL
});
});
break;

View File

@ -274,6 +274,7 @@ WebappsApplication.prototype = {
launch: function(aStartPoint) {
let request = this.createRequest();
cpmm.sendAsyncMessage("Webapps:Launch", { origin: this.origin,
manifestURL: this.manifestURL,
startPoint: aStartPoint || "",
oid: this._id,
requestID: this.getRequestId(request) });