diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 09:31:03 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-06 09:31:03 -0500 |
commit | 7a0b23aab862a5a04f1f71a91e76fc2e03d93672 (patch) | |
tree | d30d4b81ab89124c3e496adf16d39bd30a7e49dd /toolkit/components/printing/content/printPreviewBindings.xml | |
parent | c09eca89e42978ebaacb7b618ba2994bce062502 (diff) | |
download | UXP-7a0b23aab862a5a04f1f71a91e76fc2e03d93672.tar UXP-7a0b23aab862a5a04f1f71a91e76fc2e03d93672.tar.gz UXP-7a0b23aab862a5a04f1f71a91e76fc2e03d93672.tar.lz UXP-7a0b23aab862a5a04f1f71a91e76fc2e03d93672.tar.xz UXP-7a0b23aab862a5a04f1f71a91e76fc2e03d93672.zip |
Issue #65 - Remove AppConstants from toolkit/components/printing
Diffstat (limited to 'toolkit/components/printing/content/printPreviewBindings.xml')
-rw-r--r-- | toolkit/components/printing/content/printPreviewBindings.xml | 8 |
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; |