summaryrefslogtreecommitdiffstats
path: root/dom/push/PushRecord.jsm
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-01 21:45:08 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:25:32 +0200
commitc8bbebe59de7883b2b7b609c7ebb19533eb99c7d (patch)
tree8894851dd0b86f80ad2a83882a2c51d54ce4cc15 /dom/push/PushRecord.jsm
parentfddc35e4384c20b1ad5d0c9818f490be29b1ece5 (diff)
downloadUXP-c8bbebe59de7883b2b7b609c7ebb19533eb99c7d.tar
UXP-c8bbebe59de7883b2b7b609c7ebb19533eb99c7d.tar.gz
UXP-c8bbebe59de7883b2b7b609c7ebb19533eb99c7d.tar.lz
UXP-c8bbebe59de7883b2b7b609c7ebb19533eb99c7d.tar.xz
UXP-c8bbebe59de7883b2b7b609c7ebb19533eb99c7d.zip
Issue #65 - Remove AppConstants from dom/
Diffstat (limited to 'dom/push/PushRecord.jsm')
-rw-r--r--dom/push/PushRecord.jsm16
1 files changed, 8 insertions, 8 deletions
diff --git a/dom/push/PushRecord.jsm b/dom/push/PushRecord.jsm
index 08a7678e0..58f808e6c 100644
--- a/dom/push/PushRecord.jsm
+++ b/dom/push/PushRecord.jsm
@@ -9,7 +9,6 @@ const Ci = Components.interfaces;
const Cu = Components.utils;
const Cr = Components.results;
-Cu.import("resource://gre/modules/AppConstants.jsm");
Cu.import("resource://gre/modules/Preferences.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@@ -145,13 +144,14 @@ PushRecord.prototype = {
return Date.now();
}
- if (AppConstants.MOZ_ANDROID_HISTORY) {
- let result = yield Messaging.sendRequestForResult({
- type: "History:GetPrePathLastVisitedTimeMilliseconds",
- prePath: this.uri.prePath,
- });
- return result == 0 ? -Infinity : result;
- }
+#ifdef MOZ_ANDROID_HISTORY
+ let result = yield Messaging.sendRequestForResult({
+ type: "History:GetPrePathLastVisitedTimeMilliseconds",
+ prePath: this.uri.prePath,
+ });
+
+ return result == 0 ? -Infinity : result;
+#endif
// Places History transition types that can fire a
// `pushsubscriptionchange` event when the user visits a site with expired push