Bug 216057

Summary: Web Inspector: Timelines: re-enabling the JavaScript Allocations timeline doesn't show previously captured heap snapshots in the table
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Devin Rousso 2020-09-01 16:07:02 PDT
# STEPS TO REPRODUCE
1. inspect <https://webkit.org/>
2. go to the Timelines Tab
3. enable the JavaScript Allocations timeline instrument
4. reload the page to capture some heap snapshots (should have at least two)
5. enter Edit mode
6. disable the JavaScript Allocations timeline instrument
7. exit Edit mode
8. enter Edit mode
9. enable the JavaScript Allocations timeline instrument
10. exit Edit mode

# EXPECTED
The JavaScript Allocations timeline instrument should show either the previously captured heap snapshots or no heap snapshots (i.e. they were cleared when the JavaScript Allocations timeline instrument was disabled).

# ACTUAL
The overview graph shows records for each previously captured heap snapshot, but the JavaScript Allocations table has no rows and clicking on any of the heap snapshot records in the overview graph does nothing.
Comment 1 Radar WebKit Bug Importer 2020-09-01 16:07:15 PDT
<rdar://problem/68172848>
Comment 2 Devin Rousso 2020-09-01 18:18:56 PDT
Created attachment 407727 [details]
Patch
Comment 3 BJ Burg 2020-09-02 08:45:58 PDT
Comment on attachment 407727 [details]
Patch

r=me
Comment 4 EWS 2020-09-02 08:48:31 PDT
Committed r266463: <https://trac.webkit.org/changeset/266463>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 407727 [details].