From 8156d7c7e183bec5bcc18bb663b08b9aacd93c58 Mon Sep 17 00:00:00 2001 From: Alexandre Poirot Date: Thu, 6 Feb 2014 09:46:29 -0500 Subject: [PATCH] Bug 963258 - Prevent exception when using webconsole in alarm code. r=gene --- dom/alarm/AlarmsManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/alarm/AlarmsManager.js b/dom/alarm/AlarmsManager.js index 4310627e721..c62ed3fa1fe 100644 --- a/dom/alarm/AlarmsManager.js +++ b/dom/alarm/AlarmsManager.js @@ -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; },