Context menu options are displayed for Manage Topics and Choose a Wallpaper in about:preferences#home
Categories
(Firefox :: Settings UI, defect)
Tracking
()
People
(Reporter: Gabi, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
4.00 MB,
video/mp4
|
Details |
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
- Open about:preferences#home
- Right click the Manage Topics or Choose a Wallpaper
- 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
Comment 1•10 months ago
|
||
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?
Updated•10 months ago
|
Comment 2•10 months ago
|
||
I'm not following what we mean by "context menu" but I don't see a bug here?
Comment 3•10 months ago
|
||
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 :)
| Reporter | ||
Updated•10 months ago
|
Description
•