Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 402333

Summary: [IE] Error double-clicking on an empty buffer in IE10
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 2.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-03-04 09:47:55 EST
1. Using IE10, open demo.html
2. Select everything in the buffer and delete it.
3. Double-click on the empty buffer

You get an error.
> SCRIPT5007: Unable to get property 'length' of undefined or null reference 
textView.js, line 903 character 5

The stack trace is
>	_getNextOffset_W3C, textView.js, line 903
	getNextOffset, textView.js, line 884
	_setSelectionTo, textView.js, line 5620
	_handleMouse, textView.js, line 2841
	_handleMouseDown, textView.js, line 2893
	handler, textView.js, line 4987
Comment 1 Silenio Quarti CLA 2013-03-11 17:18:49 EDT
Another variant of this bug:

Steps:
1,2 - Same as above
3. type a word "hello"
4. Double-click on the blank area

Expected: the whole word is selected
Actual: only the last character is select.

Fixed

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=cdf405a3f52296a0d1cc346c8c20b24e6c718b85