Closed Bug 667231 Opened 13 years ago Closed 13 years ago

Copying part of an URL with hidden protocol does not copy the protocol

Categories

(Firefox :: Address Bar, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 666964

People

(Reporter: zao, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:7.0a1) Gecko/20110624 Firefox/7.0a1
Build Identifier: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:7.0a1) Gecko/20110624 Firefox/7.0a1

Current nightly seems to hide the protocol part of URLs in the location bar (browser.urlbar.trimURLs). If the whole URL is selected and copied, the protocol is copied with it.

If only part of the URL is selected, the protocol is not included in the copied text, even if the selection extends all the way to the left of the URL.

Reproducible: Always

Steps to Reproduce:
1. Select the start of an URL.
2. Copy it.
3. Observe that the copied string does not include the protocol used.

Actual Results:  
The URL only contains the selected text.

Expected Results:  
If the selection extends all the way to the beginning of the URL, the protocol should be included, like how it works if all of the URL is selected.

I realize that this will lead to a corner case where someone might actually intend to only copy the part of the URL they selected.

I believe that the use case of: "user wants to copy an URL without some of the tail of it" is more common.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.