What steps will reproduce the problem?
1. Open google.com.
2. Click "Images" link (to populate history with a same-domain link.
3. Open DevTools.
4. Gather a heap profile.
5. Click "Back" button in browser.
6. Heap profile is removed.
If before step 5 a CPU profile was also gathered, heap profile remains -- this is the correct behavior.
The fix is easy -- check if we have heap snapshots gathered the same way we are checking for CPU profiles.
Created attachment 80768 [details]
Manually committed http://trac.webkit.org/changeset/77254
2011-02-01 Mikhail Naganov <email@example.com>
Reviewed by Pavel Feldman.
Web Inspector: Fix profiles reset to avoid clearing heap profiles in Chromium.