summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-14 23:00:32 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-14 23:00:32 +0100
commitc80c9cc4020be922207dfb136541c0f9b8eba1b5 (patch)
tree88884671a7a4a54552437bafe99796545b744ded /toolkit
parentfb1d4c9712eb1898d89f90edfc6120ff169e6357 (diff)
downloadUXP-c80c9cc4020be922207dfb136541c0f9b8eba1b5.tar
UXP-c80c9cc4020be922207dfb136541c0f9b8eba1b5.tar.gz
UXP-c80c9cc4020be922207dfb136541c0f9b8eba1b5.tar.lz
UXP-c80c9cc4020be922207dfb136541c0f9b8eba1b5.tar.xz
UXP-c80c9cc4020be922207dfb136541c0f9b8eba1b5.zip
[WebExAM] Use proper application name in WebExtension API error message.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/components/webextensions/ExtensionUtils.jsm3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/components/webextensions/ExtensionUtils.jsm b/toolkit/components/webextensions/ExtensionUtils.jsm
index e7f768c07..04e767cb5 100644
--- a/toolkit/components/webextensions/ExtensionUtils.jsm
+++ b/toolkit/components/webextensions/ExtensionUtils.jsm
@@ -990,7 +990,8 @@ function findPathInObject(obj, path, printErrors = true) {
for (let elt of path.split(".")) {
if (!obj || !(elt in obj)) {
if (printErrors) {
- Cu.reportError(`WebExtension API ${path} not found (it may be unimplemented by Firefox).`);
+ let appname = Services.appinfo.name;
+ Cu.reportError(`WebExtension API ${path} not found (it may be unimplemented by ${appname}).`);
}
return null;
}