summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-12 01:35:30 +0200
committerMoonchild <moonchild@palemoon.org>2020-07-12 01:35:30 +0200
commit33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab (patch)
tree02d1995079346024023dff8c28e9c3d31dd41a93
parent451980d51bef06ec886c9454dcc26de54759a166 (diff)
downloadUXP-33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab.tar
UXP-33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab.tar.gz
UXP-33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab.tar.lz
UXP-33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab.tar.xz
UXP-33ba46c6bb4ccbacb0a08c6d99ec98d4fbd8dfab.zip
Revert "Revert "Issue #1445 - Add a link to details on using Firefox extensions in Pale Moon""
This reverts commit 7ba07f4a17944fc64607a0804df5df7220cf74a8.
-rw-r--r--toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties2
-rw-r--r--toolkit/mozapps/extensions/content/extensions.js4
-rw-r--r--toolkit/mozapps/extensions/content/extensions.xml4
3 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
index b98160b53..3ee8a36c1 100644
--- a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
+++ b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties
@@ -32,6 +32,7 @@ notification.softblocked=%1$S is known to cause issues.
notification.softblocked.link=More Information
#LOCALIZATION NOTE (details.notification.compatibility) %1$S is the add-on name, %2$S is brand name
notification.compatibility=%1$S was not designed for %2$S. It may not function properly or cease to function.
+notification.compatibility.link=More Information
#LOCALIZATION NOTE (notification.outdated) %1$S is the add-on name
notification.outdated=An important update is available for %1$S.
notification.outdated.link=Update Now
@@ -82,6 +83,7 @@ details.notification.blocked=%1$S has been disabled due to security or stability
details.notification.blocked.link=More Information
#LOCALIZATION NOTE (details.notification.compatibility) %1$S is the add-on name, %2$S is brand name
details.notification.compatibility=%1$S was not designed for %2$S. It may not function properly or cease to function.
+details.notification.compatibility.link=More Information
#LOCALIZATION NOTE (details.notification.softblocked) %1$S is the add-on name
details.notification.softblocked=%1$S is known to cause issues.
details.notification.softblocked.link=More Information
diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js
index 782fca303..3c3b5894b 100644
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -3067,6 +3067,10 @@ var gDetailView = {
"details.notification.compatibility",
[this._addon.name, gStrings.brandShortName], 2
);
+ var warningLink = document.getElementById("detail-warning-link");
+ warningLink.value = gStrings.ext.GetStringFromName("details.notification.compatibility.link");
+ warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url");
+ warningLink.hidden = false;
#endif
} else {
this.node.removeAttribute("notification");
diff --git a/toolkit/mozapps/extensions/content/extensions.xml b/toolkit/mozapps/extensions/content/extensions.xml
index 097410fd2..e2eef852a 100644
--- a/toolkit/mozapps/extensions/content/extensions.xml
+++ b/toolkit/mozapps/extensions/content/extensions.xml
@@ -1363,6 +1363,10 @@
"notification.compatibility",
[this.mAddon.name, gStrings.brandShortName], 2
);
+ this._warningLink.value = gStrings.ext.GetStringFromName("notification.compatibility.link");
+ this._warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url");
+ this._warningLink.hidden = false;
+ this._warningBtn.hidden = true;
}
}
#endif