Bug 970201 - Change manifestUrl to manifestURL in WebapManager._autoUpdates aData argument. r=wesj

This commit is contained in:
Martyn Haigh 2014-02-18 16:54:08 +00:00
parent c9a4b4b471
commit aa58963064
2 changed files with 1 additions and 10 deletions

View File

@ -82,7 +82,7 @@ public class InstallHelper implements GeckoEventListener {
try {
message.put("apkPackageName", mApkResources.getPackageName());
message.put("manifestUrl", mApkResources.getManifestUrl());
message.put("manifestURL", mApkResources.getManifestUrl());
message.put("title", mApkResources.getAppName());
message.put("manifest", new JSONObject(mApkResources.getManifest(mContext)));

View File

@ -246,15 +246,6 @@ this.WebappManager = {
_autoUpdate: function(aData, aOldApp) { return Task.spawn((function*() {
log("_autoUpdate app of type " + aData.type);
// The data object has a manifestUrl property for the manifest URL,
// but updateHostedApp expects it to be called manifestURL, and we pass
// the data object to it, so we need to change the name.
// TODO: rename this to manifestURL upstream, so the data object always has
// a consistent name for the property (even if we name it differently
// internally).
aData.manifestURL = aData.manifestUrl;
delete aData.manifestUrl;
if (aData.type == "hosted") {
let oldManifest = yield DOMApplicationRegistry.getManifestFor(aData.manifestURL);
DOMApplicationRegistry.updateHostedApp(aData, aOldApp.id, aOldApp, oldManifest, aData.manifest);