Closed Bug 1925291 Opened 3 months ago Closed 2 months ago

Show a warning message in the extensions panel when a soft-blocked extension has been re-enabled

Categories

(WebExtensions :: Frontend, enhancement, P2)

enhancement

Tracking

(firefox135 verified)

VERIFIED FIXED
135 Branch
Tracking Status
firefox135 --- verified

People

(Reporter: willdurand, Assigned: rpl)

References

(Regressed 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(5 files)

Attached image spec

We'll want to have a message-bar warning under a soft-blocked extension that has been re-enabled in the extensions panel. See the Figma spec.

This patches applied tweaks to the CSS rules that are meant to choose the right browserAction
theme icon based on the theme colors.

In addition to that this patch includes a tweak (unrelated to the changes applied to the CSS rules)
to the test that would be hitting a failure if the CSS rules are not applied to the browserAction
toolbar-button as the test cases from this test file expects.

This is currently split out from the parent patch including the rest of the frontend changes
because these rules seems worth an additional close look.

Depends on D229904

Assignee: nobody → lgreco
Attachment #9439318 - Attachment description: WIP: Bug 1925291 - Propagate blocklistState to the Extension class instances. → Bug 1925291 - Propagate blocklistState to the Extension class instances. r?willdurand!
Status: NEW → ASSIGNED
Attachment #9439320 - Attachment description: WIP: Bug 1925291 - Add Extensions Button panel a new per-item messagebar. → Bug 1925291 - Add Extensions Button panel a new per-item messagebar. r?willdurand!
Attachment #9439471 - Attachment description: WIP: Bug 1925291 - Tweak themed icons css rules. → Bug 1925291 - Tweak themed icons css rules. r?willdurand!
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/ac2a87182d6a Propagate blocklistState to the Extension class instances. r=willdurand https://hg.mozilla.org/integration/autoland/rev/46bd418a9e54 Add Extensions Button panel a new per-item messagebar. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao,flod https://hg.mozilla.org/integration/autoland/rev/540773496872 Tweak themed icons css rules. r=willdurand,desktop-theme-reviewers,dao

Backed out for causing dt failures @browser_aboutdebugging_addons_debug_console.js.

Flags: needinfo?(lgreco)
Backout by agoloman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9b58c882dc4b Backed out changeset 2a6ce904c3f5 for causing dt failures @browser_aboutdebugging_addons_debug_console.js.

The failure hit by browser_aboutdebugging_addons_debug_console.js was due to one more test helper triggering the browser action click on the wrong element, this was unfortunately was missed by the push to try.

Also fixed the eslint prettier formatting error, which I guess may have been due to an update to prettier happening between my previous push to try from last week and when I pushed it to autoland today.

I'll push to autoland the updated stack asap.

Flags: needinfo?(lgreco)
Regressions: 1935135
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/9f4b4a057816 Propagate blocklistState to the Extension class instances. r=willdurand https://hg.mozilla.org/integration/autoland/rev/993b49184d2f Add Extensions Button panel a new per-item messagebar. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao,flod,devtools-reviewers,ochameau https://hg.mozilla.org/integration/autoland/rev/08427977fd30 Tweak themed icons css rules. r=willdurand,desktop-theme-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

Verified as Fixed. Tested on the latest Nightly (135.0a1/20241205213207) under Windows 10, Ubuntu 22.04 LTS and macOS 11.3.1.

Once a soft-blocked extension is re-enabled a warning strip will appear under the add-on entry in the extensions panel stating “{addon_name} violates Mozilla’s policies. Using it may be risky.”

See attached screenshot for more details.

Status: RESOLVED → VERIFIED
Attached image 2024-12-06_15h40_56.png
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: