Safari copies URL wrong out of adressbar

Originator:ePirat07
Number:rdar://19078658 Date Originated:25-Nov-2014 01:02 PM
Status:Open Resolved:
Product:Safari Product Version:Version 8.0 (10600.1.25)
Classification:UI/Usability Reproducible:Always
 
Summary:
When a URL is copied out of the Adressbar that contains characters disallowed in an URL (unless they are percent-encoded) these characters should be copied percent-encoded, else the resulting URL is invalid, according to RFC 1738

Steps to Reproduce:
1. Visit some URL that contains special characters, for example the Rails UTF-8 checkmark (✓) or umlauts (öäü…) like:
https://www.speakerinnen.org/de/search?utf8=%E2%9C%93&q=test&button=
2. Hit enter to load the page
3. Copy the URL out of the Adressbar


Expected Results:
The URL should be copied percent encoded to be valid:
https://www.speakerinnen.org/de/search?utf8=%E2%9C%93&q=test&button=

Actual Results:
The URL is copied as displayed in the Adressbar, causing it to be invalid since it contains not allowed characters:
https://www.speakerinnen.org/de/search?utf8=✓&q=test&button=

Version:
Safari Version 8.0 (10600.1.25)

Notes:
This wrong behavior doesn't happen when sharing the URL using the Share Button.

Configuration:
MacBook Pro (Retina, 13", End 2013)
OS X Yosemite 10.10 (14A389)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!