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, 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.com
instead 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
.com
to.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•1 year ago
|
Comment 1•1 year 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•1 year 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•1 year ago
|
Updated•1 year ago
|
Comment 4•10 months ago
|
||
Updated•10 months ago
|
Comment 5•10 months 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•10 months 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•10 months ago
|
||
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Comment 9•9 months ago
|
||
Updated•9 months ago
|
Updated•9 months ago
|
Updated•9 months ago
|
Updated•9 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 13•7 months ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee | ||
Comment 14•7 months ago
|
||
I'll take this over soon.
Assignee | ||
Comment 15•6 months 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•6 months ago
|
Updated•6 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 16•5 months ago
|
||
Comment 17•5 months ago
|
||
bugherder |
Updated•5 months ago
|
Comment 18•4 months 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.
Description
•