Copying an autosuggested URL does not include protocol if using context menu options
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
People
(Reporter: oardelean, Assigned: mseibert)
References
Details
(Keywords: papercut, regression, Whiteboard: [sng-scrubbed][search-papercut])
Attachments
(1 file, 1 obsolete file)
Found in
- Nightly 120.0a1;
Affected versions
- Nightly 120.0a1;
- Beta 119.0b2;
Tested platforms
- Windows 10;
- Ubuntu 22;
- macOS 12;
Affected platforms
- Windows 10;
- Ubuntu 22;
- macOS 12;
Unaffected platforms
- N/A;
Steps to reproduce
- Launch Firefox
- Open https://musicbrainz.org .
- Open a new tab.
- Close the tab opened in step 2.
- Type music and allow Firefox to autosuggest to musicbrainz.org/ .
- Right-Click on the Address Bar, choose Select all.
- Right-Click on the Address Bar, select Copy.
- Right-Click on the Address Bar, select Paste.
Expected result
- Protocol information
(https://)is included when using context menu options.
Actual result
- Protocol information
(https://)is not included when using the context menu options.
Regression range
- Will look for one ASAP.
Additional notes
- Please note that selecting the autocompleted string with Ctrl+A or Triple-click and copying/pasting them via Ctrl+C/Ctrl+V, protocol information is successfully copied.
| Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
:oardelean, if you think that's a regression, could you try to find a regression range using for example mozregression?
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I suspect what differs between right click (not working as expected) VS CTRL+A (working as expected) is that the view is closed when the context menu opens, so we just end up copying the string in the input field.
We could probably check if the non-visible results are still relevant and copy the protocol from there.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 3•2 years ago
•
|
||
It would appear that this issue is a very old regression.
I've attempted investigation and these are the best results possible using mozregression:
Tested mozilla-central build: 2019-10-28 (verdict: g)
Tested mozilla-central build: 2019-10-29 (verdict: b)
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
@mak I don't understand why in a previous updated the UrlbarView was closed on right click for the "paste and go" feature. "Paste And Go" seems to work fine even when not closing the View on right click https://searchfox.org/mozilla-central/source/browser/components/urlbar/UrlbarInput.sys.mjs#3113.
By removing this line, the context menu copy works as expected. The "toolbar copy button" still has the problem though, as again the View is closed before copy.
| Assignee | ||
Comment 6•2 years ago
|
||
| Assignee | ||
Comment 7•2 years ago
|
||
I added a second patch that explores the other solution of fetching results from the hidden UrlbarView. This also allows using the copy button from the toolbar buttons.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
| Reporter | ||
Comment 10•2 years ago
|
||
Reproducible on a 2024-01-25 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 124.0a1 on Windows 10, macOS 12, Ubuntu 22.
Description
•