Bug 191454

Summary: Uncaught Exception: undefined is not an object (evaluating 'treeElement.parent.removeChild')
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, inspector-bugzilla-changes, joepeck, mattbaker, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2018-11-08 21:00:06 PST
* Steps to Reproduce
1. Inspect a page with workers
2. js> location.href = "http://webkit.org"
  => Exception

* Notes
- looks like this code is iterating a Map incorrectly

-------
Protocol Event:
{"method":"Debugger.globalObjectCleared"}

Uncaught Exceptions:
 - undefined is not an object (evaluating 'treeElement.parent.removeChild') (at ResourceSidebarPanel.js:417:35)
    _scriptsCleared @ ResourceSidebarPanel.js:417:35
    dispatch @ Object.js:170:30
    dispatchEventToListeners @ Object.js:177:17
    reset @ DebuggerManager.js:602:38
    globalObjectCleared @ DebuggerObserver.js:37:33
    dispatchEvent @ InspectorBackend.js:328:42
    _dispatchEvent @ Connection.js:194:32
    dispatch @ Connection.js:72:32
    dispatchMessageFromTarget @ TargetManager.js:99:35
    dispatchMessageFromTarget @ TargetObserver.js:42:51
    dispatchEvent @ InspectorBackend.js:328:42
    _dispatchEvent @ Connection.js:194:32
    dispatch @ Connection.js:72:32
    dispatch @ InspectorBackend.js:172:49
    dispatchNextQueuedMessageFromBackend @ MessageDispatcher.js:42:34

Additional Details:
    cause --> An uncaught exception was thrown while handling event: Debugger.globalObjectCleared
-------
Comment 1 Joseph Pecoraro 2018-11-08 21:00:48 PST
Created attachment 354309 [details]
[PATCH] Proposed Fix
Comment 2 Matt Baker 2018-11-08 21:04:26 PST
Comment on attachment 354309 [details]
[PATCH] Proposed Fix

r=me
Comment 3 WebKit Commit Bot 2018-11-08 22:07:27 PST
Comment on attachment 354309 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 354309

Committed r238017: <https://trac.webkit.org/changeset/238017>
Comment 4 WebKit Commit Bot 2018-11-08 22:07:29 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-11-08 22:08:21 PST
<rdar://problem/45935204>