mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 970201 - Change manifestUrl to manifestURL in WebapManager._autoUpdates aData argument. r=wesj
This commit is contained in:
parent
c9a4b4b471
commit
aa58963064
@ -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)));
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user