Bug 963258 - Prevent exception when using webconsole in alarm code. r=gene

This commit is contained in:
Alexandre Poirot 2014-02-06 09:46:29 -05:00
parent 6d27822d35
commit 8156d7c7e1

View File

@ -180,7 +180,7 @@ AlarmsManager.prototype = {
// Get the manifest URL if this is an installed app
let appsService = Cc["@mozilla.org/AppsService;1"]
.getService(Ci.nsIAppsService);
this._pageURL = principal.URI.spec;
this._pageURL = aWindow.location.href;
this._manifestURL = appsService.getManifestURLByLocalId(principal.appId);
this._window = aWindow;
},