Closed Bug 1799947 Opened 2 years ago Closed 2 years ago

browser_action's without a valid default_area set should fallback to using AREA_ADDONS when Unified Extensions UI is enabled

Categories

(WebExtensions :: Frontend, enhancement, P1)

enhancement

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

By default, up until now, if a WebExtension with a browser_action has not supplied a default_area, we've fallen back to putting the browser_action into the navbar.

With the Unified Extensions UI enabled, we want to change that fallback behaviour so that browser_actions with a default_area get added to the addons panel instead.

We should also take the opportunity to update the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action about this.

We had a number of tests that assumed that when adding a browser_action without
specifying the default_area, that the button would enter the navbar. The previous
patch in this series changes that assumption when the Unified Extensions UI is
enabled.

Instead of updating all of these tests to add additional steps to move the
browser_action's out to the navbar after adding them, I've gone ahead and
updated them to default their browser_action's to the navbar instead.

Depends on D161720

Severity: -- → N/A
Type: task → enhancement
Priority: -- → P1
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/517df40ddcd4
With Unified Extensions UI, make addons panel the fallback area for browser_actions. r=willdurand
https://hg.mozilla.org/integration/autoland/rev/ff58300200c4
Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers

Backed out 2 changesets (Bug 1799947) for causing multiple browserAction bc, mochitest, devtools related failures.
Backout link
Push with failures <--> bc1 <--> 6 <--> dt4
Failure Log
Also 6 Failure Log
Also dt4 Failure Log

Flags: needinfo?(mconley)
Regressions: 1800761
Regressions: 1800764
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/33884422a0a4
With Unified Extensions UI, make addons panel the fallback area for browser_actions. r=willdurand
https://hg.mozilla.org/integration/autoland/rev/4f0d86227850
Update existing tests to put browser_action's into the navbar by default. r=willdurand,extension-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Flags: needinfo?(mconley)

(In reply to Mike Conley (:mconley) (:⚙️) from comment #1)

We should also take the opportunity to update the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action about this.

I created an issue for the dev doc: https://github.com/mdn/content/issues/23797

I noticed the inaccuracy in the MDN docs so I submitted a patch.

Regressions: 1815752
No longer regressions: 1815752
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: