Description

View the page source and copy the HTML to your clipboard (any medium-large HTML page will do) then close the source view

Click the Source button in the editor instance

Paste the contents of the clipboard buffer into the editor pane

Scroll to the bottom of the editor. You will now see something similar to the attached file "scrollpos_orig.png"

Now click the cursor somewhere outside the editor area, e.g. on the window body.

Expected Behavior:

Editor scroll position does not change (screen appearance remains the same)

Actual Behavior:

Editor scrolls upward an arbitrary amount toward the top of the source document. Repeatedly clicking inside/outside the editor pane scrolls further up the document in most cases. See attached screenshot, "scrollpos_moved.png".

This was previously reported by someone else in defect #4775 (and possibly others), which was marked as invalid. However, both that and this defect have the same root cause, which is a callback executed in the "source" textarea when the blur event is fired. The change that "fixed" #4775 appears to be the removal of manually firing onblur when onmouseout fired, but it did not resolve the core issue.