Bug 157759

Summary: Uncaught Exception: TypeError: null is not an object (evaluating 'event.data.pathComponent.domTreeElement')
Product: WebKit Reporter: BJ Burg <bburg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description BJ Burg 2016-05-16 15:25:58 PDT
-------
Auto-generated details:

Inspected URL:        file:///Users/bburg/repos/webkit-tot/OpenSource/WebKitBuild/Release/WebInspectorUI.framework/Resources/Main.html
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/602.1.33+ (KHTML, like Gecko)
Uncaught exceptions:
 - TypeError: null is not an object (evaluating 'event.data.pathComponent.domTreeElement') (at DOMTreeContentView.js:375:48)
-------

* STEPS TO REPRODUCE
1. Go to a random page
2. Start a timeline recording
3. Inspect the inspector, go to the Elements tab
4. Click around on the DOM element path components.
5. > uncaught exception <
Comment 1 Radar WebKit Bug Importer 2016-05-16 15:27:22 PDT
<rdar://problem/26309427>
Comment 2 Joseph Pecoraro 2016-05-16 15:43:42 PDT
[Error] Assertion Failed
    _pathComponentSelected (DOMTreeContentView.js:374)
    dispatch (Object.js:161)
    dispatchEventToListeners (Object.js:168)
    _selectElementMouseUp (HierarchicalPathComponent.js:314)
    _selectElementMouseUp

The event.data.pathComponent is null when _selectElementMouseUp triggers on a <select> without a selected index.
Comment 3 Joseph Pecoraro 2016-05-16 16:36:25 PDT
Created attachment 279067 [details]
[PATCH] Proposed Fix
Comment 4 WebKit Commit Bot 2016-05-16 21:10:48 PDT
Comment on attachment 279067 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 279067

Committed r200995: <http://trac.webkit.org/changeset/200995>
Comment 5 WebKit Commit Bot 2016-05-16 21:10:52 PDT
All reviewed patches have been landed.  Closing bug.