Last modified: 2013-05-10 17:53:58 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 T49623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47623 - VisualEditor: Link inspector crashes when trying to annotate first character in the document
VisualEditor: Link inspector crashes when trying to annotate first character ...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Highest normal
: VE-deploy-2013-05-13
Assigned To: Rob Moen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-25 01:27 UTC by Roan Kattouw
Modified: 2013-05-10 17:53 UTC (History)
6 users (show)

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


Attachments

Description Roan Kattouw 2013-04-25 01:27:54 UTC
Make a selection that includes the first character, and press the access key for creating a link (Ctrl+K?). You'll get a JS error.
Comment 1 Moriel Schottlender 2013-05-06 03:57:16 UTC
I wanted to check this out, and I noticed that this fails (I reproduced the error) in Chrome and Firefox 20.x in Windows, but it works perfectly (no crash on first character) in my Firefox 20.x in Ubuntu.

Also, if it helps, here's the error I'm getting on Firebug:

Error: Error in Rangy Position module: Cannot get position for range [WrappedRange(<P>[4][<a href="sdjfh" titl]:0, <P>[4][<a href="sdjfh" titl]:0)]
https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.visualEditor.core%2Cicons-raster%7Cext.visualEditor.viewPageTarget.icons-raster%7Crangy%7Cunicodejs.wordbreak&skin=vector&version=20130505T030747Z&*
Line 224

It seems it has something to do with the wordbreaks (??). Can there be a difference in wordbreaks that are used at the beginning of a document/paragraph between Linux and Windows? (Like ther'es a difference in endofline chars and whitespaces) ?

Not sure if it helps, but here's for sharing.
Comment 2 Rob Moen 2013-05-06 22:51:38 UTC
Mysteriously works upon updating to the current HEAD.

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


Navigation
Links