No "Open link in new [window/tab]" context menu entry for `about:.*` URIs.
Categories
(Core :: Networking, defect, P3)
Tracking
()
People
(Reporter: zn7esutb, Unassigned, NeedInfo)
Details
(Whiteboard: [necko-triaged])
Attachments
(3 files, 1 obsolete file)
Environment
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Steps to reproduce
-
Select
/html/body/div[4]/div/div[2]/main/section/article/section/p[2]/strongatsupport.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles(which should becode, notstrong):about:profiles -
Invoke the context menu (≡⃣).
Actual results
It did not appear to be recognized as a URI, despite being valid and visitable from Firefox.
Expected results
It should be treated as any other URI would – the schema should be irrelevant. I think this is just a RegEx nonconformity issue.
Comment 1•2 years ago
|
||
Reproduced the issue with Firefox 119.0 (2023-10-16) on Ubuntu 22.04.
Marking issue as new for engineering input. Thank you.
Comment 2•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 3•2 years ago
|
||
No sure what's the problem here - the URL can be opened with Firefox 121.0.1. Can you be more specific?
Thanks.
Updated•1 year ago
|
| Reporter | ||
Comment 5•10 months ago
|
||
the URL can be opened with Firefox 121.0.1. Can you be more specific?
Yes. The problem arises solely with about: URIs that aren't encapsulated with <a href>s.
Examples
-
text/plain-
Selection and secondary-click produces the correct context menu entries.
-
Selection and secondary-click produces the correct context menu entries.
-
example.com
Selecting this produces the relevant options. It isn't automatically hyperlinkified (which is understandable), so secondary-click isn't relevant.
-
about:blank
Neither work for this. Additionally, it should be hyperlinkified, but isn't.
-
-
<a href>-
Selection and secondary-click produces the correct context menu entries.
-
Selection and secondary-click produces the correct context menu entries.
-
example.comisn't a valid URI, so converting it to a hyperlink would cause the browser to consider it to be a path relative to the current domain. -
Selecting this doesn't produce the correct options, but secondary-clicking it does. However, the options are non-functional:
- When I try
about:blank, I am redirected toabout:blank, albeit with nothing in the omnibox. - When I try
about:preferences, I am again redirected toabout:blank, albeit withabout:preferencesprefilled in the omnibox.
- When I try
-
Environment
firefox-135.0.1-1.fc41.x86_64
Meta
Ideally, for the sake of semantics, the content of the text/plain section should be encapsulated within a <pre><code> (~~~txt), but Bugzilla doesn't hyperlinkify its content like it does for CommonMark text. Is that deficiency being tracked anywhere (yet)?
| Reporter | ||
Comment 6•10 months ago
|
||
| Reporter | ||
Updated•10 months ago
|
| Reporter | ||
Comment 7•10 months ago
|
||
| Reporter | ||
Updated•10 months ago
|
Comment 8•10 months ago
|
||
I guess we'd need to add about: as uri scheme but I'm not sure which component is that. Tentatively moving to networking.
Updated•10 months ago
|
Comment 9•10 months ago
•
|
||
We should not allow to open privileged about: pages from web content.
| Reporter | ||
Comment 10•10 months ago
|
||
This is about the explicit context menu option on selection of text, irrespective of whether it's been rendered as a hyperlink. As aforementioned, regarding hyperlinks, I believe that single-click is already blocked.
Though, more broadly, what's the security gain from disabling either? Immediately, one might think that it prevents a website from autofilling dangerous parameters in about: URIs, but they can still just as easily plonk the URI content in a <p> and then ask the user to copy and paste into the omnibox. Heck, they can even automatically paste it into the clipboard, obfuscating it as much as an <a href> can.
Updated•6 months ago
|
Description
•