Repro for crbug.com/1341602

This illustrates the problem that the editor scroll position is not always reliably correctly restored when switching tabs.

Steps

  1. Reload this page with DevTools open
  2. Open both crbug-1341602-foo.js and crbug-1341602-bar.js in the Sources panel
  3. Click on the crbug-1341602-foo.js:149 link in the Console
  4. Switch to crbug-1341602-bar.js tab, scroll to the bottom and the top of the file quickly and switch back to the crbug-1341602-foo.js tab
  5. Ideally the scroll position now is again showing line 149 of crbug-1341602-foo.js, but most of the time it'll show the top of that file instead