Closed Bug 1712734 Opened 3 years ago Closed 3 years ago

MacOS native context menus fail to honor CSS rules defined in userChrome.css

Categories

(Core :: Widget: Cocoa, defect)

Firefox 89
Unspecified
macOS
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: danmattera1, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

  1. set widget.macos.native-context-menus = true
  2. set toolkit.legacyUserProfileCustomizations.stylesheets = true to enable custom CSS via userChrome.css
  3. place a rule targeting a context menu item such as #context-back { display: none !important; } in your userChrome.css file.

Actual results:

The rule is ignored by the context menu and is not applied to the element defined in the rule.

Expected results:

The rule should be honored by the context menu. In the example given, the "Back" option should be hidden but instead it remains visible.

If you disable widget.macos.native-context-menus to bring back the non-native context menus, the rule is then respected and the rule is correctly applied to the "Back" option in the context menu

Component: Untriaged → Widget: Cocoa
OS: Unspecified → macOS
Product: Firefox → Core

This will not be supported with native context menus.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.