summaryrefslogtreecommitdiffstats
path: root/toolkit/components/printing/content/printPreviewBindings.xml
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-02-07 10:57:04 +0100
committerGitHub <noreply@github.com>2020-02-07 10:57:04 +0100
commit6c82d043a1fbcda650057467ae2858025290ed25 (patch)
tree0e6ed8ca0a0d12653351c67d8de62a372c954f29 /toolkit/components/printing/content/printPreviewBindings.xml
parenta6ef90b1830e263fefda7bcb6e7b74464044a678 (diff)
parentfa52fa60b70c5883acd4a8edd8e1f89c3d5f3920 (diff)
downloadUXP-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/printing/content/printPreviewBindings.xml')
-rw-r--r--toolkit/components/printing/content/printPreviewBindings.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolkit/components/printing/content/printPreviewBindings.xml b/toolkit/components/printing/content/printPreviewBindings.xml
index 182ecc199..c33b22e36 100644
--- a/toolkit/components/printing/content/printPreviewBindings.xml
+++ b/toolkit/components/printing/content/printPreviewBindings.xml
@@ -161,10 +161,14 @@
let $ = id => document.getAnonymousElementByAttribute(this, "anonid", id);
let ltr = document.documentElement.matches(":root:-moz-locale-dir(ltr)");
+#ifdef XP_WIN
// Windows 7 doesn't support ⏮ and ⏭ by default, and fallback doesn't
// always work (bug 1343330).
- let {AppConstants} = Components.utils.import("resource://gre/modules/AppConstants.jsm", {});
- let useCompatCharacters = AppConstants.isPlatformAndVersionAtMost("win", "6.1");
+ let useCompatCharacters = Services.vc.compare(Services.sysinfo.getProperty("version"), "6.1") <= 0;
+#else
+ let useCompatCharacters = false;
+#endif
+
let leftEnd = useCompatCharacters ? "⏪" : "⏮";
let rightEnd = useCompatCharacters ? "⏩" : "⏭";
$("navigateHome").label = ltr ? leftEnd : rightEnd;