Closed Bug 1867961 Opened 1 year ago Closed 1 year ago

URLs with line breaks are no longer fixed up, regardless of editor.singleLine.pasteNewlines

Categories

(Firefox :: Address Bar, defect)

Firefox 120
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: akkzilla, Unassigned)

Details

(Keywords: regression)

As of Firefox 120, I can no longer paste broken multiline URLs and have them work.

For instance, someone sent me an email containing the lines

https://xerces.org/blog/how-advocates-stopped-aerial-insecticide-spray-on- 25000-acres-of-new-mexico-natural-areas

If I copy both lines and paste them into the urlbar, or middlemouse them over the content area, firefox shows the URL
https://xerces.org/blog/how-advocates-stopped-aerial-insecticide-spray-on-%20%20%20%2025000-acres-of-new-mexico-natural-areas

This is a regression: prior to FF 120, I used to do this sort of paste all the time and it worked.

So as of FF 120, the only way to visit this URL is to laboriously right-arrow through it in the URLbar and remove all the added %20s. That's a lot of extra work for something that's very common (broken URLs in email messages).

This used to be controlled by editor.singleLine.pasteNewlines. Mine
was set to 3, which used to be the default on Linux, which always worked before even though it's not documented to remove spaces (documented here: http://kb.mozillazine.org/Editor.singleLine.pasteNewlines). Reviewing that documentation, I tried changing it to 5 which is explicitly supposed to remove spaces adjacent to a newline, but that didn't work either and gave the same result.

Exploring prefs, I also stumbled upon network.url.strip-data-url-whitespace which sounds like it might be related, but it made no difference on this URL. Maybe it only works for data URLs; I can't find any documentation for it

Whoops, I'm a moron, this was user error. Closing, sorry.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.