Last modified: 2012-06-29 20:44:27 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 T39810, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37810 - VisualEditor: bullet list breaking after changing window focus
VisualEditor: bullet list breaking after changing window focus
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
PC Windows 7
: Unprioritized normal
: ---
Assigned To: Christian Williams
https://internal.wikia-inc.com/wiki/N...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-21 21:43 UTC by Dan Baran
Modified: 2012-06-29 20:44 UTC (History)
6 users (show)

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


Attachments

Description Dan Baran 2012-06-21 21:43:10 UTC
Browser = Chrome 19.0.1084.56

Clickstream:

--used formatting toolbar to select bullet
--entered single word
--changed focus from browser to different window (skype I think)
--changed focus back to browser by mousing back to bullet list
--hit enter
--nothing happened.  cursor didn't move.  


I can reproduce consistently by typing in another window, then coming back to browser, and cursor will be stuck.  However if I perform some action in another tab of the browser, when I return to the tab in which I'm editing, the cursor works, although it requires hitting enter more than once.
Comment 1 Roan Kattouw 2012-06-21 21:45:47 UTC
Can you see any JS errors in the debugging console? To access this in Chrome, right-click anywhere on the page, selecting "Inspect element", then in the inspector that pops up at the bottom of the window go to the "Console" tab. If you see any error messages appear there, please post them here.
Comment 2 Dan Baran 2012-06-21 21:50:55 UTC
right, should have done the the first time.  Errors as follows:

Uncaught TypeError: Cannot read property 'node' of undefined bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:202
Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:141
2Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:179
Uncaught TypeError: Cannot read property 'node' of undefined bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:202
Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:141
11Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:179
Uncaught TypeError: Cannot read property 'node' of undefined bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:202
Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:141
Uncaught TypeError: Cannot call method 'canHaveChildren' of null bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Crangy&skin=vector&version=20120621T210603Z&*:179
Comment 3 Roan Kattouw 2012-06-21 21:53:56 UTC
Sorry, I should have told you this earlier: could you please set ?debug=true at the end of the URL and try again? That should assign the real line numbers to the errors.
Comment 4 Dan Baran 2012-06-21 22:05:38 UTC
No problemo.  Here's the errors with line numbers, and a detailed description of the actions I took:

--loaded editor, placed cursor at end of bullet item (the word "traffic" at the very end of the article)
--clicked away to skype, clicked back to browser with cursor still at end of list item, hit enter.  following error resulted:

Uncaught TypeError: Cannot read property 'node' of undefined ve.ce.Surface.js:848

hit enter again, and cursor moved down to beginning of next line, no bullet added.  hit backspace to return to previous line, following error resulted:

Uncaught TypeError: Cannot call method 'canHaveChildren' of null ve.dm.Document.js:429

Hit enter again, and cursor didn't move, following error resulted:

Uncaught TypeError: Cannot call method 'canHaveChildren' of null ve.ce.Document.js:21

hit enter a few more times, no cursor movement, and the following same errors:

Uncaught TypeError: Cannot call method 'canHaveChildren' of null ve.ce.Document.js:21
Uncaught TypeError: Cannot call method 'canHaveChildren' of null ve.ce.Document.js:21
Uncaught TypeError: Cannot call method 'canHaveChildren' of null ve.ce.Document.js:21
Comment 5 James Forrester 2012-06-22 22:05:15 UTC
Mass-moving items into VisualEditor product
Comment 6 James F. 2012-06-29 20:43:29 UTC
Reassigning per Christian's request.
Comment 7 Christian Williams 2012-06-29 20:44:27 UTC
I committed some fixes for handling at the end of the document, which likely fixed this bug. I'm following the clickstream exactly and am unable to reproduce the problem. Daniel also showed me this bug on his computer, so I have a very good understanding of what the bug looked like.

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


Navigation
Links