Closed
Bug 1338991
Opened 8 years ago
Closed 8 years ago
FF performs unwanted URL-escaping of URLs during copy-paste (FFAC preference setting to the contrary is ignored)
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1320061
People
(Reporter: ropers+github.com, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170201180315
Steps to reproduce:
Bug: FF performs unwanted URL-escaping of URLs during copy-paste (FFAC preference setting to the contrary is ignored)
FF version: 51.0.1 (64-bit) on ubuntu 16.04 LTS
Steps to reproduce:
1. Vist https://ru.wikipedia.org/wiki/Кипр
2. Copy URL.
3. Paste URL into text editor.
Observed result: URL is pasted as https://ru.wikipedia.org/wiki/%D0%9A%D0%B8%D0%BF%D1%80
Expected result: URL should have been pasted as https://ru.wikipedia.org/wiki/Кипр
Partial work-around #1:
Set network.standard-url.escape-utf8 to false in FFAC (Firefox about:config)
Caution: Ordinary copying & pasting as per above still fails to produce the expected result, however the following does:
1. Enter http://ru.wikipedia.org/wiki/Кипр (HTTP, not HTTPS)--> Site will auto-redirect to HTTPS
2. Copy URL.
3. Paste URL into text editor.
Observed result: If and only if the URL that was entered before the site auto-redirected to HTTPS actually was a HTTP
URL, then the URL does actually get pasted as https://ru.wikipedia.org/wiki/Кипр at this point, i.e. the FFAC preference
setting is honoured.
Related FFAC settings:
network.standard-url.escape-utf8 --> false
network.standard-url.encode-utf8 (default)
dom.url.encode_decode_hash (default)
dom.url.getters_decode_hash (default)
Partial work-around #2:
Instead of copying and pasting the full https://ru.wikipedia.org/wiki/Кипр, copy and paste only
ttps://ru.wikipedia.org/wiki/Кипр (as in w/o leading h)
and type the h manually.
Observed result: The unwanted URL-escaping will not occur.
(This work-around does NOT require having the network.standard-url.escape-utf8 FFAC preference set to false.)
Valentin, I think you've worked on this. Can you take a look?
Flags: needinfo?(valentin.gosu)
Comment 2•8 years ago
|
||
This is "fixed" in Firefox 53 - see bug 1320061.
In order to get the behaviour you want, just set the browser.urlbar.decodeURLsOnCopy pref to true.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(valentin.gosu)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•