From c80c9cc4020be922207dfb136541c0f9b8eba1b5 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 14 Jan 2019 23:00:32 +0100 Subject: [WebExAM] Use proper application name in WebExtension API error message. --- toolkit/components/webextensions/ExtensionUtils.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3