Closed Bug 2006894 Opened 11 months ago Closed 10 months ago

Context menu options are displayed for Manage Topics and Choose a Wallpaper in about:preferences#home

Categories

(Firefox :: Settings UI, defect)

Desktop
All
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr115 --- disabled
firefox-esr140 --- disabled
firefox146 --- disabled
firefox147 --- disabled
firefox148 --- affected

People

(Reporter: Gabi, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached video 2025-12-18_15h45_05.mp4 —

Affected versions

  • Firefox Nightly 148

Affected platforms

  • Windows 11x64, macOS 14, Ubuntu 24

Prerequisites
Enable the settings redesign pref - browser.settings-redesign.enabled
To enable the "Manage Topics" section, enable the following prefs:
browser.newtabpage.activity-stream.discoverystream.sections.enabled
browser.newtabpage.activity-stream.discoverystream.topicLabels.enabled
browser.newtabpage.activity-stream.discoverystream.sections.personalization.enabled
browser.newtabpage.activity-stream.discoverystream.sections.customizeMenuPanel.enabled
browser.newtabpage.activity-stream.feeds.section.topstories

Steps to reproduce

  1. Open about:preferences#home
  2. Right click the Manage Topics or Choose a Wallpaper
  3. Check the context menu options

Expected result

  • Context menu options should not be displayed for the Manage Topics and Choose a Wallpaper dropdowns

Actual result

  • Context menu options are displayed for Manage Topics and Choose a Wallpaper

Regression range

  • New implementation

Additional notes

  • Error message is displayed for the Preview link(J) option: Security Error: Content at moz-nullprincipal:{110bb27d-9529-433a-8e74-9dd07009e121} may not load or link to about:newtab#customize-topics.
    Uncaught DOMException: Component returned failure code: 0x805303f4 (NS_ERROR_DOM_BAD_URI) [nsIWebNavigation.fixupAndLoadURIString]
    _internalMaybeFixupLoadURI chrome://browser/content/tabbrowser/tabbrowser.js:9359
    fixupAndLoadURIString chrome://browser/content/tabbrowser/tabbrowser.js:9308
    openInCurrentTab resource:///modules/URILoadingHelper.sys.mjs:285
    openLinkIn resource:///modules/URILoadingHelper.sys.mjs:582
    openLinkIn chrome://browser/content/utilityOverlay.js:125
    handleLink chrome://browser/content/genai/content/link-preview-card.mjs:119
    handleEvent chrome://global/content/vendor/lit.all.mjs:2031

See the attached screen recording

So the Manage Topics and Choose a Wallpaper options are, at their core, anchor tags (links), and right-clicking on them should essentially show this context menu.
We're using the Box Link component for those options for reference: https://firefoxux.github.io/firefox-desktop-components/?path=/docs/ui-widgets-box-link-readme--docs, and when right-clicking on the examples there, the same context menu pops up. So this is expected behaviour.

In regards to the link preview error, i think it's happening because link previews only work for normal web pages because Firefox opens them in a safe, restricted way. Pages like about:newtab or about:addons are special internal pages with higher privileges, and letting them load in a preview is probably a security risk.

I've tested this with other privileged links. If you go to about:about, you'll see a list of these internal pages, and none of them allow for link previews. So this seems to be a feature rather than a bug.

Let me know if you have any questions/more concerns, otherwise maybe we can close this ticket?

Flags: needinfo?(gasofie)

I'm not following what we mean by "context menu" but I don't see a bug here?

They mean the options that appear when right-clicking. There are non-anchor specific items that would show up with non-anchor elements, and vice versa. I also agree that this isn't a bug and is fine to close.

Gabi, feel free to re-open this or ping me if there's something I may have missed when assessing this bug. As for now, I'll close this as invalid :)

Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INVALID
Flags: needinfo?(gasofie)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: