Bug 779176 - Activities doesn't work with different entry points (not using href) [r=mounir]

This commit is contained in:
Fabrice Desré 2012-08-09 08:39:52 -07:00
parent fcb5018f71
commit 76534ec43e

View File

@ -124,7 +124,7 @@ let DOMApplicationRegistry = {
cpmm.sendAsyncMessage("Activities:Register", json);
let launchPath =
Services.io.newURI(manifest.fullLaunchPath(description.href), null, null);
Services.io.newURI(manifest.resolveFromOrigin(description.href), null, null);
let manifestURL = Services.io.newURI(aApp.manifestURL, null, null);
msgmgr.registerPage("activity", launchPath, manifestURL);
}
@ -1002,6 +1002,10 @@ DOMApplicationManifest.prototype = {
return this._origin.resolve(launchPath + startPoint);
},
resolveFromOrigin: function(aURI) {
return this._origin.resolve(aURI);
},
fullAppcachePath: function() {
let appcachePath = this._localeProp("appcache_path");
return this._origin.resolve(appcachePath ? appcachePath : "");