diff options
author | Moonchild <moonchild@palemoon.org> | 2020-02-07 10:57:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 10:57:04 +0100 |
commit | 6c82d043a1fbcda650057467ae2858025290ed25 (patch) | |
tree | 0e6ed8ca0a0d12653351c67d8de62a372c954f29 /toolkit/components/places/PlacesUtils.jsm | |
parent | a6ef90b1830e263fefda7bcb6e7b74464044a678 (diff) | |
parent | fa52fa60b70c5883acd4a8edd8e1f89c3d5f3920 (diff) | |
download | UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.gz UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.lz UXP-6c82d043a1fbcda650057467ae2858025290ed25.tar.xz UXP-6c82d043a1fbcda650057467ae2858025290ed25.zip |
Merge pull request #1394 from MoonchildProductions/appconst-work
The rest of removing AppConstants for Platform
Diffstat (limited to 'toolkit/components/places/PlacesUtils.jsm')
-rw-r--r-- | toolkit/components/places/PlacesUtils.jsm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/toolkit/components/places/PlacesUtils.jsm b/toolkit/components/places/PlacesUtils.jsm index 5f6e81f18..259fb7aa7 100644 --- a/toolkit/components/places/PlacesUtils.jsm +++ b/toolkit/components/places/PlacesUtils.jsm @@ -30,7 +30,6 @@ const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components; Cu.importGlobalProperties(["URL"]); Cu.import("resource://gre/modules/XPCOMUtils.jsm"); -Cu.import("resource://gre/modules/AppConstants.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "Services", "resource://gre/modules/Services.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "NetUtil", @@ -64,7 +63,11 @@ const MIN_TRANSACTIONS_FOR_BATCH = 5; // On Mac OSX, the transferable system converts "\r\n" to "\n\n", where // we really just want "\n". On other platforms, the transferable system // converts "\r\n" to "\n". -const NEWLINE = AppConstants.platform == "macosx" ? "\n" : "\r\n"; +#ifdef XP_MACOSX +const NEWLINE = "\n"; +#else +const NEWLINE = "\r\n"; +#endif function QI_node(aNode, aIID) { var result = null; |