Open Bug 1666864 Opened 2 months ago Updated 2 months ago

Firefox does not copy hyperlinks correctly.

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: desudesu, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0

Steps to reproduce:

I've noticed that when you copy any sort of hyperlink in Firefox, if the hyperlink contains: ' &url= ' any text after that's not a letter or number, such as a period, slash, colon, etc will use some sort of hash instead of the actual thing.

IE:
instead of getting: https://www

you get: https%3A%2F%2Fwww

And what's worse is that when you do paste the bugged copied text onto the url box on Firefox, it'll give you an error instead of translating those hashes back into actual symbols.

Actual results:

https://www

Expected results:

https%3A%2F%2Fwww

Assignee: infra → nobody
Component: DNS and Domain Registration → Untriaged
Product: Infrastructure & Operations → Firefox
QA Contact: cshields

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Component: Untriaged → DOM: Editor
Product: Firefox → Core

That is the correct thing to do, even though the URL bar does some decoding for the purposes of user-friendliness. See https://en.wikipedia.org/wiki/Percent-encoding

Though maybe something in url parsing makes the encoding in the query string not required and we could skip it? not sure...

Flags: needinfo?(annevk)

desudesu, could you please give a testcase or steps to reproduce this problem? I tried to recreate the scenario but I cannot reproduce it with that link. Same if I modify ? to ?test& btw, but that shouldn't give different results anyway.

Flags: needinfo?(annevk) → needinfo?(desudesu)
You need to log in before you can comment on or make changes to this bug.