The reason is that when switching back, sidebar tree is the default focus target, but has random scroll offset. The only solution i've found is to 1) prevent scroller from being default focus target 2) manually restore scroll offset upon show. Only (1) or only (2) does not work for the reason above.
Created attachment 50153 [details] [PATCH] Proposed fix.
I'd like to land this soon for the nightly / dev channel. So I am asking for formal reviewer from somebody. I'll make sure this is fine with Tim (xenon) who was reviewing my timeline code. This change was tested well and is safe. Brings only good :)
Comment on attachment 50153 [details] [PATCH] Proposed fix. Seems reasonable. r=me
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/English.lproj/localizedStrings.js M WebCore/inspector/front-end/TimelinePanel.js Committed r55627
Looks fine.