WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
212618
Web Inspector: Graphics: should use the `id` (name) of the animation if it exists
https://bugs.webkit.org/show_bug.cgi?id=212618
Summary
Web Inspector: Graphics: should use the `id` (name) of the animation if it ex...
Devin Rousso
Reported
2020-06-01 16:17:04 PDT
``` window.animation = document.body.animate([], {id: "OldName"}); ``` should appear as "OldName" in Web Inspector, not "Animation 1"
Attachments
Patch
(36.72 KB, patch)
2020-06-01 16:20 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
[Image] after Patch is applied
(672.19 KB, image/png)
2020-06-01 16:21 PDT
,
Devin Rousso
no flags
Details
Patch
(36.70 KB, patch)
2020-06-01 16:29 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2020-06-01 16:20:33 PDT
Created
attachment 400765
[details]
Patch
Devin Rousso
Comment 2
2020-06-01 16:21:31 PDT
Created
attachment 400766
[details]
[Image] after Patch is applied
Timothy Hatcher
Comment 3
2020-06-01 16:24:19 PDT
Comment on
attachment 400765
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=400765&action=review
> Source/WebInspectorUI/UserInterface/Views/AnimationContentView.js:162 > + }
This formatting looks wrong, but what else could we do?
> Source/WebInspectorUI/UserInterface/Views/AnimationDetailsSidebarPanel.js:168 > + this._idRow.value = cssAnimationName === displayName ? null : displayName;
I’d almost flip this so null is last.
> Source/WebInspectorUI/UserInterface/Views/AnimationDetailsSidebarPanel.js:172 > + this._idRow.value = cssTransitionProperty === displayName ? null : displayName;
Ditto.
Devin Rousso
Comment 4
2020-06-01 16:28:01 PDT
Comment on
attachment 400765
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=400765&action=review
>> Source/WebInspectorUI/UserInterface/Views/AnimationContentView.js:162 >> + } > > This formatting looks wrong, but what else could we do?
oh, i actually don't need the braces here anymore :P
>> Source/WebInspectorUI/UserInterface/Views/AnimationDetailsSidebarPanel.js:168 >> + this._idRow.value = cssAnimationName === displayName ? null : displayName; > > I’d almost flip this so null is last.
i wish there was a shorthand for `foo === bar ? bar : null` :(
Devin Rousso
Comment 5
2020-06-01 16:29:54 PDT
Created
attachment 400768
[details]
Patch
EWS Watchlist
Comment 6
2020-06-01 17:55:46 PDT
This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
EWS
Comment 7
2020-06-01 18:12:05 PDT
Committed
r262404
: <
https://trac.webkit.org/changeset/262404
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 400768
[details]
.
Radar WebKit Bug Importer
Comment 8
2020-06-01 18:13:19 PDT
<
rdar://problem/63852510
>
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