Bug 193501 - Web Inspector: Fix TreeOutline TypeError:​ this._indexesForSubtree is not a function
Summary: Web Inspector: Fix TreeOutline TypeError:​ this._indexesForSubtree is not a f...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P1 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-16 11:40 PST by Matt Baker
Modified: 2019-01-16 14:04 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.77 KB, patch)
2019-01-16 11:42 PST, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2019-01-16 11:40:53 PST
This bug was introduced in https://webkit.org/b/192917.

Steps to Reproduce:
1. Inspect daringfireball.net
2. Open Elements tab
3. Reload the page

TypeError:​ this._indexesForSubtree is not a function. (In 'this._indexesForSubtree(child)​', 'this._indexesForSubtree' is undefined)​ (at TreeOutline.js:​332:​53)​
    removeChildAtIndex @ TreeOutline.js:​332:​53
    _updateChildren @ DOMTreeElement.js:​494:​36
    _updateChildren @ [native code]​
    getChildNodes @ DOMNode.js:​490:​25
    updateChildren @ DOMTreeElement.js:​420:​45
    _updateModifiedNodes @ DOMTreeUpdater.js:​125:​49
    performWork @ Utilities.js:​1501:​47
Comment 1 Radar WebKit Bug Importer 2019-01-16 11:41:29 PST
<rdar://problem/47323967>
Comment 2 Matt Baker 2019-01-16 11:42:32 PST
Created attachment 359285 [details]
Patch
Comment 3 Nikita Vasilyev 2019-01-16 13:20:15 PST
Comment on attachment 359285 [details]
Patch

Looks good. I can't reproduce the exception anymore.
Comment 4 Joseph Pecoraro 2019-01-16 13:39:11 PST
Comment on attachment 359285 [details]
Patch

r=me
Comment 5 WebKit Commit Bot 2019-01-16 14:04:41 PST
Comment on attachment 359285 [details]
Patch

Clearing flags on attachment: 359285

Committed r240051: <https://trac.webkit.org/changeset/240051>
Comment 6 WebKit Commit Bot 2019-01-16 14:04:42 PST
All reviewed patches have been landed.  Closing bug.