WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
118929
Web Inspector: strings logged to the console cannot be directly copied and pasted into the console as displayed
https://bugs.webkit.org/show_bug.cgi?id=118929
Summary
Web Inspector: strings logged to the console cannot be directly copied and pa...
James Savage
Reported
2013-07-19 16:57:52 PDT
Overview: Evaluating an expression in the web inspector console such as `JSON.stringify({foo:'bar'})`will produce a text result of `"{"foo":"bar"}"`, which if copied and pasted back into the console is a syntax error. It would be useful if we escape inner quote marks, or in some way format this, such that what is displayed is a valid javascript expression. Steps to reproduce: Evaluate an expression such as `JSON.stringify({foo:'bar'})` Expected result: Console result which is a valid JavaScript expression, such as `"{\"foo\":\"bar\"}"`. Actual result: The contents of the result string, wrapped in double quotes, but without inner quotes escaped.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-07-19 16:58:16 PDT
<
rdar://problem/14499707
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug