Closed Bug 1706398 Opened 3 years ago Closed 3 years ago

Implement "action" API / manifest key

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: robwu, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, Whiteboard: mv3:m1 [mv3-m1] )

Attachments

(3 files)

In manifest v3, the browser_action key has been renamed to action (and in Chrome, page_action has been merged with it).

Although we haven't decided whether we're also going to merge page_action, the least that we can do for compatibility is to introduce an action manifest key.

Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P2
Whiteboard: mv3:m1
Whiteboard: mv3:m1 → mv3:m1 [mv3-m1]
Pushed by scaraveo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eeb832bfd3da
implement action support and alias browser_action to action. r=robwu,geckoview-reviewers,agi
https://hg.mozilla.org/integration/autoland/rev/ecc3f031dd6d
support internal command _execute_action r=robwu
https://hg.mozilla.org/integration/autoland/rev/503e92fb9813
support action context type for context menus r=robwu
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1722966
See Also: → 1723763
See Also: → 1783990
Blocks: 1797811

These aliases haven't been documented. I don't see any mention of it at:

The "command" key in the menus APIs should refer to the special command section of the commands API.
The commands API should document that _execute_browser_action is MV2-only, and replaced with _execute_action in MV3. Also worth mentioning that in Chromium browsers (Chrome/Edge/Opera/etc) that _execute_page_action is no longer supported because these browsers have dropped the page_action API in favor of action.

Keywords: dev-doc-needed

These items are documented in the special shortcuts section of the command manifest key, which in turn is referenced from the Command API description. Do we need further changes?

Flags: needinfo?(rob)

This has already been covered by https://github.com/mdn/content/pull/22018 .

Flags: needinfo?(rob)

Richard, we missed an article here.
Could you add action to https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/menus/ContextType and its BCD?

The existing browser_action item should emphasize that it is in MV2 only, the new action item should emphasize that it's MV3 only.

Flags: needinfo?(rbloor)
Flags: needinfo?(rbloor)

Changes made in (content) #24844 and (BCD) #19005

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: