Bug 835799 - Add a timestamp property to the observer sent when an application has been called by app.launch(). r=fabrice

This commit is contained in:
Vivien Nicolas 2013-02-05 13:05:56 -05:00
parent 13ef244c0c
commit 46e45588c5
2 changed files with 2 additions and 0 deletions

View File

@ -837,6 +837,7 @@ var WebappsHelper = {
let manifest = new ManifestHelper(aManifest, json.origin);
shell.sendChromeEvent({
"type": "webapps-launch",
"timestamp": json.timestamp,
"url": manifest.fullLaunchPath(json.startPoint),
"manifestURL": json.manifestURL
});

View File

@ -481,6 +481,7 @@ WebappsApplication.prototype = {
manifestURL: this.manifestURL,
startPoint: aStartPoint || "",
oid: this._id,
timestamp: Date.now(),
requestID: this.getRequestId(request) });
return request;
},