mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 779176 - Activities doesn't work with different entry points (not using href) [r=mounir]
This commit is contained in:
parent
fcb5018f71
commit
76534ec43e
@ -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 : "");
|
||||
|
Loading…
Reference in New Issue
Block a user