Bug 83883 - Web Inspector: exception in heap profiler when expanding a class in summary view
Summary: Web Inspector: exception in heap profiler when expanding a class in summary view
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 05:36 PDT by Yury Semikhatsky
Modified: 2012-04-13 06:51 PDT (History)
13 users (show)

See Also:


Attachments
Patch (59.59 KB, patch)
2012-04-13 06:25 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (68.65 KB, patch)
2012-04-13 06:45 PDT, Yury Semikhatsky
pfeldman: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Semikhatsky 2012-04-13 05:36:33 PDT
at quickSortFirstK (chrome-devtools://devtools/PartialQuickSort.js:40:35)
    at Array.<anonymous> (chrome-devtools://devtools/PartialQuickSort.js:49:9)
    at Object.sort (chrome-devtools://devtools/HeapSnapshot.js:1837:30)
    at Object.serializeNextItems (chrome-devtools://devtools/HeapSnapshot.js:1665:18)
    at Object.dispatchMessage (chrome-devtools://devtools/HeapSnapshotWorkerDispatcher.js:82:63)
Comment 1 Yury Semikhatsky 2012-04-13 05:36:54 PDT
Looks like regression after http://trac.webkit.org/changeset/113994
Comment 2 Yury Semikhatsky 2012-04-13 06:25:32 PDT
Created attachment 137075 [details]
Patch
Comment 3 Pavel Feldman 2012-04-13 06:30:09 PDT
Comment on attachment 137075 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=137075&action=review

> Source/WebCore/inspector/front-end/DOMUtils.js:36
> +Node.prototype.rangeOfWord = function(offset, stopCharacters, stayWithinNode, direction)

I would call this file DOMExtension.js and would move highlight-related methods into the WebInspector.UIUtils, into the WebInspector namespace.
Comment 4 Yury Semikhatsky 2012-04-13 06:45:38 PDT
Created attachment 137079 [details]
Patch
Comment 5 WebKit Review Bot 2012-04-13 06:49:09 PDT
Comment on attachment 137079 [details]
Patch

Attachment 137079 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12391950
Comment 6 Yury Semikhatsky 2012-04-13 06:51:04 PDT
Committed r114126: <http://trac.webkit.org/changeset/114126>