Open Bug 1185358 Opened 4 years ago Updated 2 years ago

Paste words in location bar: newlines are removed, words are merged

Categories

(Firefox :: Address Bar, enhancement, P3)

39 Branch
enhancement

Tracking

()

People

(Reporter: rip0320, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsearch])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150629114848

Steps to reproduce:

Pasted this multi-line string into the awesome location bar:
White House
Washington DC
USA


Actual results:

My string got transformed and this is what got in the bar:
White HouseWashington DCUSA


Expected results:

White House Washington DC USA
2 legit use cases are conflicting here.

First, when user wants to paste an URL, and this URL might have been broken into piece by a mail software or other. The correct behavior is to remove the newline and merge the long URL pieces, as discussed in bug 1014246. This already works.

Second, when user wants to search terms (e.g. a geographic address, a sentence, etc.). The correct behavior is to replace each newline by a space. This currently doesn't work.

I understand the choice might not always be obvious. Afaict, the same use cases in Chromium always work as expected.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Component: Untriaged → Location Bar
Ever confirmed: true
Blocks: 1425024
Priority: -- → P3
Whiteboard: [fxsearch]
You need to log in before you can comment on or make changes to this bug.