From 41b6a1662abc8845a76f4c4316a2b067ddbae936 Mon Sep 17 00:00:00 2001 From: William Durand Date: Mon, 9 Oct 2023 12:11:33 +0000 Subject: [PATCH] Bug 1856397 - Set "error" type to the incompatible message bar in `about:addons`. r=rpl Differential Revision: https://phabricator.services.mozilla.com/D189834 --- toolkit/mozapps/extensions/content/aboutaddons.js | 2 +- .../extensions/test/browser/browser_html_warning_messages.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/extensions/content/aboutaddons.js b/toolkit/mozapps/extensions/content/aboutaddons.js index bae6c2e9603d..9194bbd80e99 100644 --- a/toolkit/mozapps/extensions/content/aboutaddons.js +++ b/toolkit/mozapps/extensions/content/aboutaddons.js @@ -283,7 +283,7 @@ async function getAddonMessageInfo(addon) { return { messageId: "details-notification-incompatible2", messageArgs: { name, version: Services.appinfo.version }, - type: "warning", + type: "error", }; } else if (!isCorrectlySigned(addon)) { return { diff --git a/toolkit/mozapps/extensions/test/browser/browser_html_warning_messages.js b/toolkit/mozapps/extensions/test/browser/browser_html_warning_messages.js index 43dd71e3ffef..de34cff82bda 100644 --- a/toolkit/mozapps/extensions/test/browser/browser_html_warning_messages.js +++ b/toolkit/mozapps/extensions/test/browser/browser_html_warning_messages.js @@ -204,7 +204,7 @@ add_task(async function testIncompatible() { id: "details-notification-incompatible", args: { name, version: appVersion }, }, - type: "warning", + type: "error", }); });