Skip to content

Replace webextapiref links for contextMenus#44041

Open
caugner wants to merge 1 commit intomainfrom
fix-webextapirefs-macros
Open

Replace webextapiref links for contextMenus#44041
caugner wants to merge 1 commit intomainfrom
fix-webextapirefs-macros

Conversation

@caugner
Copy link
Copy Markdown
Collaborator

@caugner caugner commented May 7, 2026

Description

Replaces contextMenus with menu in WebExtAPIRef invocations.

Motivation

The contextMenus pages redirect to menus, and this is the cause for Rari build issues ("flaws").

Additional details

Related issues and pull requests

Part of mdn/fred#1462.

@caugner caugner requested review from a team as code owners May 7, 2026 20:26
@caugner caugner requested review from dipikabh and willdurand and removed request for a team May 7, 2026 20:26
@github-actions github-actions Bot added Content:WebExt WebExtensions docs Content:Firefox Content in the Mozilla/Firefox subtree size/s [PR only] 6-50 LoC changed labels May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Preview URLs (3 pages)

Flaws (4)

Note! 2 documents with no flaws that don't need to be listed. 🎉

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Mozilla/Firefox/Releases/136
Title: Firefox 136 release notes for developers
Flaw count: 4

  • macros:
    • Macro cssxref produces link /en-US/docs/Web/CSS/linear-gradient which is a redirect
    • Macro cssxref produces link /en-US/docs/Web/CSS/conic-gradient which is a redirect
    • Macro cssxref produces link /en-US/docs/Web/CSS/radial-gradient which is a redirect
    • Macro svgelement produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect
External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/136
Title: Firefox 136 release notes for developers


- Adds the `preferred_environment` property to the [`background` manifest key](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background), enabling extensions to request that the browser run their background scripts as a document or service worker ([Firefox bug 1798655](https://bugzil.la/1798655)).
- {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} and the aliases {{WebExtAPIRef("contextMenus.update")}} and {{WebExtAPIRef("contextMenus.remove")}} now reject with an error when the menu item doesn't exist. Previously, the error was ignored and the promise fulfilled. ([Firefox bug 1688743](https://bugzil.la/1688743)).
- {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} and the aliases {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} now reject with an error when the menu item doesn't exist. Previously, the error was ignored and the promise fulfilled. ([Firefox bug 1688743](https://bugzil.la/1688743)).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} and the aliases {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} now reject with an error when the menu item doesn't exist. Previously, the error was ignored and the promise fulfilled. ([Firefox bug 1688743](https://bugzil.la/1688743)).
- {{WebExtAPIRef("menus.update")}} and {{WebExtAPIRef("menus.remove")}} and the aliases `contextMenus.update` and `contextMenus.remove` now reject with an error when the menu item doesn't exist. Previously, the error was ignored and the promise fulfilled. ([Firefox bug 1688743](https://bugzil.la/1688743)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:WebExt WebExtensions docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants