New issue
Advanced search Search tips

Issue 804867 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 789163
Owner: ----
Closed: Jan 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Copying URLs should percent-encode spaces in the URL fragment

Project Member Reported by davidben@chromium.org, Jan 23 2018

Issue description

Chrome Version: 64.0.3282.99
OS: macOS 10.13.2

What steps will reproduce the problem?
(1) Go to https://developer.android.com/reference/android/webkit/WebViewClient.html
(2) Scroll down and click, say, doUpdateVisitedHistory.
(3) Copy the URL and paste it somewhere

What is the expected result?
The resulting URL is clickable by folks.

What happens instead?
The URL is pasted as:
https://developer.android.com/reference/android/webkit/WebViewClient.html#doUpdateVisitedHistory(android.webkit.WebView, java.lang.String, boolean)

The spaces mean that most URL-processing things break the URL early. I checked in Firefox and Safari and both percent-encode the spaces on copy, so you instead get:

https://developer.android.com/reference/android/webkit/WebViewClient.html#doUpdateVisitedHistory(android.webkit.WebView,%20java.lang.String,%20boolean)

I haven't investigated what other characters they %-encode.

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Mergedinto: 789163
Status: Duplicate (was: Untriaged)
Thanks for reporting.

This was fixed for the next version of Chrome (Chrome 65).

Sign in to add a comment