Created attachment 248892 [details] Animated GIF of the problem Steps: 0. Open http://codemirror.net/demo/tern.html 1. Open Inspector 2. Set breakpoint on tern.js, line 206 3. Focus on the code editor on the demo page, and press Ctrl + Enter to trigger autocomplete.
This is actually much easier to reproduce with the Scopes sidebar, since the Local Scope and Global Scope will be so large it has to scroll. Seemingly whenever we focus inside a section it scrolls to that detail-section.
WebInspector.DetailsSection._headerElementClicked has a scrollIntoViewIfNeeded(false). I wonder if that is somehow getting run?
(In reply to comment #2) > WebInspector.DetailsSection._headerElementClicked has a > scrollIntoViewIfNeeded(false). I wonder if that is somehow getting run? Doesn't look like that is the case.
Commenting out the focus() call inside `TreeElement.prototype.select` makes this stop. Maybe this was a focus() regression in WebCore?
This is not a regression, it happens in older versions of Safari (lots of breakpoints and call stack). I think we should just be careful when we call focus().
Despite the redesign, this is still happening.
<rdar://problem/21581884>
Created attachment 257879 [details] [Proposed] Patch I am not entirely sure why the focus call was necessary in LogContentView, but removing that call has stopped this from happening for me. With that having been said, I have no way of reproducing this issue, but I've been testing with it for a few days and haven't seen this issue at all.
Comment on attachment 257879 [details] [Proposed] Patch This patch didn't fix the bug for me. It modifies LogContentView.js, which is responsible for the console and seems to be unrelated to the debugger sidebar.
(In reply to comment #8) > With that having been said, I have no way of reproducing this issue, but I've been > testing with it for a few days and haven't seen this issue at all. Were you able to reproduce this issue at all? I just reproduced it on WebKit ToT.
Comment on attachment 257879 [details] [Proposed] Patch Oh Crap! I completely missed the fact that this was in the Debugger tab. I thought this was a bug for the jumping in the Console. I'll make a new bug for that right now . Sorry!
*** Bug 157657 has been marked as a duplicate of this bug. ***
Still reproducible.