Bug 34926

Summary: Web Inspector: XPathResult objects are not expanded in console.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, rik, timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed fix. timothy: review+

Pavel Feldman
Reported 2010-02-14 05:21:17 PST
You can see "Error dispatching: getProperties" in console upon value "expand" attempt instead. I'd like to commit couple of drive-by fixes with this: 1) Use Object.getOwnPropertyNames in getProperties (as already used in completion) 2) Artificially append __proto__ property in case getting only own properties in order to allow further values browsing.
Attachments
[PATCH] Proposed fix. (12.17 KB, patch)
2010-02-14 05:26 PST, Pavel Feldman
timothy: review+
Pavel Feldman
Comment 1 2010-02-14 05:26:55 PST
Created attachment 48719 [details] [PATCH] Proposed fix.
Pavel Feldman
Comment 2 2010-02-15 02:21:05 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog M LayoutTests/inspector/console-dir-expected.txt M LayoutTests/inspector/console-dir.html M WebCore/ChangeLog M WebCore/inspector/front-end/InjectedScript.js M WebCore/inspector/front-end/ObjectPropertiesSection.js M WebCore/inspector/front-end/Section.js M WebCore/inspector/front-end/inspector.css Committed r54769
Note You need to log in before you can comment on or make changes to this bug.