Bug 22144

Summary: REGRESSION: JS error drilling down childless node
Product: WebKit Reporter: Matt Lilek <dev+webkit>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: pfeldman, timothy, zwarich
Priority: P1 Keywords: Regression
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://webkit.org/
Attachments:
Description Flags
patch timothy: review+

Matt Lilek
Reported 2008-11-08 20:15:41 PST
Go to <http://webkit.org/> and open the inspector and double click the <body> node then double click the <div id="icon"> node. The body will successfully become the root object of the tree, but when you do the same for the #icon div, the following JS error is thrown in the console: .../WebCore.framework/Resources/inspector/ElementsTreeOutline.js:491: JS ERROR: TypeError: Result of expression 'this.treeOutline' [null] is not an object.
Attachments
patch (1.78 KB, patch)
2009-09-21 05:41 PDT, Pavel Feldman
timothy: review+
Pavel Feldman
Comment 1 2009-09-21 05:32:27 PDT
The original problem is no longer repeatable. However, following is also a bug: 1) Open inspector using Inspect Element on the "Welcome" topic (important) 2) Double click on body 3) Double click on #icon div Expected: Contents of body to be displayed Actual: Contents of the welcome topic is displayed The problem is that dblclick is being dispatched twice - via explicit listener and via tree element callback. Will issue a patch shortly.
Pavel Feldman
Comment 2 2009-09-21 05:41:21 PDT
Pavel Feldman
Comment 3 2009-09-21 14:50:18 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/ElementsTreeOutline.js Committed r48605
Note You need to log in before you can comment on or make changes to this bug.