Editing and copying URL loses "https://" URL scheme when browser.urlbar.trimHttps = true
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox-esr115 | --- | unaffected |
| firefox117 | --- | unaffected |
| firefox118 | --- | disabled |
| firefox119 | --- | disabled |
| firefox120 | --- | disabled |
| firefox121 | --- | disabled |
| firefox122 | --- | disabled |
| firefox123 | --- | disabled |
| firefox124 | --- | disabled |
| firefox125 | --- | disabled |
| firefox126 | --- | disabled |
| firefox127 | --- | verified |
People
(Reporter: cpeterson, Assigned: mak)
References
(Blocks 1 open bug, Regressed 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [sng])
Attachments
(1 file, 3 obsolete files)
Steps to reproduce
- Set
browser.urlbar.trimHttps=true. - Open https://www.example.com/
- Click focus to the address bar. You will be editing the string
www.example.cominstead ofhttps://www.example.com/. Expanding the edited string to the full URL,https://www.example.com/, like Chrome would fix this bug. - Edit the URL, such as changing
.comto.net. - Ctrl+A and Ctrl+ C to select all and copy the URL text.
- Pass the copied URL in another tab or app.
Expected results
https://www.example.net/ like in Chrome.
Actual results
www.example.net
This behavior happens with http:// URLs when browser.urlbar.trimHttps = false, but when this behavior affects https:// URLs, it can happen on many more websites.
| Reporter | ||
Updated•2 years ago
|
Comment 1•2 years ago
|
||
:mseibert, since you are the author of the regressor, bug 1067293, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 2•2 years ago
|
||
We're aware of this shortcoming but it's not currently considered a blocker. The HTTPS-first feature that's currently being worked on by the Security team would somewhat mitigate this.
Adopting Chrome's behavior would be an option, but the URL jumping around when editing it isn't great. :/
Updated•2 years ago
|
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
I ran into this issue today when manually editing REST API URLs. The server did not listen on port 80 at all, so everytime I edited the URL the request simply stopped reaching the server, and even if I just remove a slash from the end of the URL, I had to manually add https:// back at the beginning.
I'd personally consider this more severe than it sounds in the comments here. Firefox completely unexpectedly sent my URL over an unencrypted connection, when I had a reasonable expectation that it would not do that. This might even leak private data.
| Assignee | ||
Comment 6•2 years ago
•
|
||
It is sever yes, but this change is only enabled in Nightly exactly to identify and address these issues.
You can enable dom.security.https_first_schemeless if you wish the urlbar to try https first. That will be the default once we have addressed remaining issues.
Comment 7•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 13•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
| Assignee | ||
Comment 14•2 years ago
|
||
I'll take this over soon.
| Assignee | ||
Comment 15•2 years ago
|
||
Untrim the address bar value when the user starts manipulating it.
This doesn't untrim on focus because that breaks double-click to select word,
and we'd need a way to simulate word boundaries selection. It's possible we'll
evaluate that in the future, once we have such method.
The behavior is currently behind the feature-gate preference:
browser.urlbar.untrimOnUserInteraction.featureGate
Original patch by Marc Seibert.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 16•2 years ago
|
||
Comment 17•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Issue is reproducible on a 2023-08-14 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 127.0a1 on Windows 10, Ubuntu 22, macOS 12.
Updated•1 year ago
|
Description
•