Closed Bug 1606260 Opened 4 years ago Closed 3 years ago

Line breaks should convert to spaces when pasting into address bar

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1327589

People

(Reporter: rfeeley, Unassigned)

References

Details

Attachments

(1 file)

STEPS TO REPRODUCE

  1. Visit a page with a list of items like like https://simple.wikipedia.org/wiki/Colour
  2. Copy a list to the clipboard
  3. Paste the list into the address bar

EXPECTED RESULTS

  • Line breaks become spaces between the list items

ACTUAL RESULTS

  • Line breaks are erased andthereisnospacebetweenitems

NOTES:

  • This is useful when you have copied something and want to do a search by pasting and hitting enter in the address bar
  • Oddly, right-clicking the selection and doing "Search Google for …" inserts spaces.
  • On MacOS Safari converts line breaks to spaces, but Chrome does not.

I think the original idea is that you are copying a url, that somehow ended up being split on multiple lines. As such the text is all pasted together, because otherwise a url wouldn't work.
But actually, this could be a lot smarter, it may check if the string begins with a protocol and decide how to connect tokens.

This is similar to bug 1327589, and likely there are other bugs around for the same thing, so eventually may be duped.

Priority: -- → P3
See Also: → 1327589
Severity: normal → S4
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: