Safari Web Inspector won't allow to copy a long value from localStorage

Originator:guillaume.algis
Number:rdar://33487373 Date Originated:2017-07-24
Status:DUPLICATE OF 14927212 Resolved:
Product:Safari Product Version:Version 10.1.1 (12603.2.4)
Classification:Improvement Reproducible:Always
 
Summary:
When viewing key value pairs of localStorage in Safari Web Inspector, there is no simple UI to copy or edit a long value. The copied value is clipped and its end content is replaced with an ellipsis. One must issue javascript command in the console to get the full value.

While I understand the need to clip the value to fit in the table UI, the right click > "Copy Value" item should copy the whole value in the clipboard.

Steps to Reproduce:
1. Store a key-value pair in local storage with a long value
    (eg. "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut dui consectetur, egestas turpis dignissim, convallis felis. Etiam sollicitudin arcu nec blandit fermentum.")
2. Open the web inspector, navigate to the "Storage" tab
3. Right click the key-value pair in the table view
4. Select "Copy Value"

Expected Results:
The content copied to the clipboard is the full value stored earlier (step 1).
Eg . "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut dui consectetur, egestas turpis dignissim, convallis felis. Etiam sollicitudin arcu nec blandit fermentum."

Observed Results:
The content copied to the clipboard is clipped, and the end of the string is replaced by an ellipsis.
Eg . "Lorem ipsum dolor sit amet, consectetur adipisc..."

Version:
Version 10.1.1 (12603.2.4)

Notes:

Configuration:

Comments

Subscribed.

By constantine.colotiline at Feb. 22, 2019, 1:57 p.m. (reply...)

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!