Bug 52914 - Web Inspector: [Chromium] Heap snapshot table sorting is broken
Summary: Web Inspector: [Chromium] Heap snapshot table sorting is broken
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Mikhail Naganov
Depends on:
Reported: 2011-01-21 13:01 PST by Mikhail Naganov
Modified: 2011-01-24 08:46 PST (History)
13 users (show)

See Also:

patch (3.04 KB, patch)
2011-01-21 13:23 PST, Mikhail Naganov
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Naganov 2011-01-21 13:01:20 PST
From http://code.google.com/p/chromium/issues/detail?id=70436:

Chrome Version       : 9.0.597.67 (Official Build 71393) beta

What steps will reproduce the problem?
1. Create a heap snapshot
2. Click on the Constructor column header

What is the expected result?
Table sorts alphabetically by constructor name.

What happens instead?
The first row randomly switches position with another row.

Please provide any additional information below. Attach a screenshot if
This same problem happens when trying to sort on the ±Count column when all counts are 0.
Comment 1 Mikhail Naganov 2011-01-21 13:23:26 PST
Created attachment 79779 [details]
Comment 2 Mikhail Naganov 2011-01-24 06:41:04 PST
Manually committed http://trac.webkit.org/changeset/76514:

    2011-01-21  Mikhail Naganov  <mnaganov@chromium.org>
            Reviewed by Pavel Feldman.
            Web Inspector: [Chromium] Fix heap snapshot table sorting.
            Fix table sorting to avoid qsort instability artefacts.
            * inspector/front-end/HeapSnapshotView.js:
Comment 3 WebKit Review Bot 2011-01-24 08:46:40 PST
http://trac.webkit.org/changeset/76514 might have broken GTK Linux 32-bit Debug
The following tests are not passing: