Bug 191454 - Uncaught Exception: undefined is not an object (evaluating 'treeElement.parent.removeChild')
Summary: Uncaught Exception: undefined is not an object (evaluating 'treeElement.paren...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-08 21:00 PST by Joseph Pecoraro
Modified: 2018-11-08 22:08 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (1.55 KB, patch)
2018-11-08 21:00 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>