Bug 147328

Summary: Web Inspector: Object previews for SVG elements shows SVGAnimatedString instead of text
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, hi, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Current Functionality
none
Testpage
none
[PATCH] Proposed Fix none

Description Devin Rousso 2015-07-27 11:30:51 PDT
Created attachment 257574 [details]
Current Functionality

I would expect that the preview of SVG elements would resolve what the classname is correctly instead of displaying [object SVGAnimatedString].  It seems to me that for the preview there should be some logic to parse the string and display the className if the animVal and baseVal match and what currently shows up otherwise.
Comment 1 Radar WebKit Bug Importer 2015-07-27 11:31:11 PDT
<rdar://problem/22013846>
Comment 2 Devin Rousso 2015-08-03 09:58:55 PDT
Created attachment 258070 [details]
Testpage

Once the page is loaded and the inspector is open, click on the page to have the SVG elements logged to the console.  The issue lies within the object preview payload.
Comment 3 Joseph Pecoraro 2015-08-03 14:06:56 PDT
Yes, the issue here is likely in InjectedScript.prototype._nodePreview in Source/JavaScriptCore/inspector/InjectedScriptSource.js.

I can take a look.
Comment 4 Joseph Pecoraro 2015-08-03 14:58:26 PDT
Created attachment 258120 [details]
[PATCH] Proposed Fix
Comment 5 WebKit Commit Bot 2015-08-04 15:40:35 PDT
Comment on attachment 258120 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 258120

Committed r187897: <http://trac.webkit.org/changeset/187897>
Comment 6 WebKit Commit Bot 2015-08-04 15:40:39 PDT
All reviewed patches have been landed.  Closing bug.