WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
198691
Web Inspector: "Copy Path to Property" doesn't work with multiline keys
https://bugs.webkit.org/show_bug.cgi?id=198691
Summary
Web Inspector: "Copy Path to Property" doesn't work with multiline keys
Alexey Shvayka
Reported
2019-06-08 12:54:43 PDT
Created
attachment 371664
[details]
Screenshot of the issue Steps to reproduce: 1. Inspect `[{a: {b: {"\n": 1}}}]` and expand down to object `b`. 2. Right-click on "\n" property, "Copy Path to Property". 3. Paste from clipboard, you get: ``` $1[0].a.b[" "] ``` Which is not valid and causes SyntaxError when executing.
Attachments
Screenshot of the issue
(362.47 KB, image/png)
2019-06-08 12:54 PDT
,
Alexey Shvayka
no flags
Details
Patch
(1.35 KB, patch)
2019-06-08 14:48 PDT
,
Alexey Shvayka
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Shvayka
Comment 1
2019-06-08 14:48:22 PDT
Created
attachment 371668
[details]
Patch
Matt Baker
Comment 2
2019-06-10 11:50:07 PDT
FYI, Chrome devtools shows: `b: {"↵": 1}` in the console.
Matt Baker
Comment 3
2019-06-10 12:02:10 PDT
Comment on
attachment 371668
[details]
Patch r=me, nice catch.
WebKit Commit Bot
Comment 4
2019-06-10 12:32:06 PDT
Comment on
attachment 371668
[details]
Patch Clearing flags on attachment: 371668 Committed
r246271
: <
https://trac.webkit.org/changeset/246271
>
WebKit Commit Bot
Comment 5
2019-06-10 12:32:07 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2019-06-10 12:33:18 PDT
<
rdar://problem/51592479
>
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