Last modified: 2014-02-28 22:59:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60998, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58998 - VisualEditor: document.activeElement can change unexpectedly while typing in VE editor
VisualEditor: document.activeElement can change unexpectedly while typing in ...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High major
: ---
Assigned To: D Chan
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-27 17:33 UTC by Jeff Hall
Modified: 2014-02-28 22:59 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Blow-by-blow of document.activeElement as right arrow key is pressed many times in succession (20.17 KB, text/xml)
2013-12-27 17:37 UTC, Jeff Hall
Details
Java program used to generate the blow-by-blow in the previous attachment (1.31 KB, application/octet-stream)
2013-12-27 17:39 UTC, Jeff Hall
Details

Description Jeff Hall 2013-12-27 17:33:58 UTC
After observing some strange results from an automated Ruby test for cursor movement in the Visual Editor CE surface, we did some digging, and it appears that while a user is typing away happily and making and edit, the document.activeElement flip-flop several times.  

I'm assuming this is unintentional behavior, thus the bug ticket.

Repro steps:

1)  Visit this page: https://test2.wikipedia.org/wiki/User:Selenium_user/cursor_test_page_chromedriver_bug
2)  Click into VE editing mode.
3)  With cursor placed immediately in front of the letter "a" in the word "after", press the right arrow key several times in succession. 
4)  When your right-arrow-clicking brings you to the reference, the document.activeElement switches from "ve-ce-documentNode ve-ce-branchNode noime" to "ve-ce-surface-paste"

I'm assuming that when the user is typing in the "editing box", the document.activeElement should not be changing.
Comment 1 Jeff Hall 2013-12-27 17:37:01 UTC
Created attachment 14177 [details]
Blow-by-blow of document.activeElement as right arrow key is pressed many times in succession
Comment 2 Jeff Hall 2013-12-27 17:39:20 UTC
Created attachment 14178 [details]
Java program used to generate the blow-by-blow in the previous attachment

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links