Bug 22144 - REGRESSION: JS error drilling down childless node
Summary: REGRESSION: JS error drilling down childless node
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Normal
Assignee: Pavel Feldman
URL: http://webkit.org/
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2008-11-08 20:15 PST by Matt Lilek
Modified: 2009-09-21 14:50 PDT (History)
3 users (show)

See Also:


Attachments
patch (1.78 KB, patch)
2009-09-21 05:41 PDT, Pavel Feldman
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Lilek 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.
Comment 1 Pavel Feldman 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.
Comment 2 Pavel Feldman 2009-09-21 05:41:21 PDT
Created attachment 39846 [details]
patch
Comment 3 Pavel Feldman 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