Last Comment Bug 578771 - Contenteditable element breaks word selection on all other input elements of the page
: Contenteditable element breaks word selection on all other input elements of ...
Status: RESOLVED FIXED
: testcase
Product: Core
Classification: Components
Component: Selection (show other bugs)
: unspecified
: All All
: -- major with 2 votes (vote)
: mozilla14
Assigned To: Graeme McCutcheon [:graememcc]
:
Mentors:
http://www.mathieusavard.info/bug/a.html
Depends on: 686203
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-14 13:07 PDT by Mathieu Dumais-Savard
Modified: 2012-04-20 10:33 PDT (History)
6 users (show)
ehsan: in‑testsuite+
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
testcase from the url (531 bytes, text/html)
2011-08-07 13:37 PDT, Martijn Wargers [:mwargers] (not working for Mozilla)
no flags Details
Test (3.04 KB, patch)
2012-04-19 07:58 PDT, Graeme McCutcheon [:graememcc]
ehsan: review+
Details | Diff | Splinter Review

Description Mathieu Dumais-Savard 2010-07-14 13:07:48 PDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; en-US; rv:2.0b2pre) Gecko/20100714 Minefield/4.0b2pre

As soon as a contenteditable is present on any given page, the behaviour of all other input or textarea of the page is altered in regards to "word selection by double clicking"

usually, double-clicking a word in a box would select that word.

Please look at the provided URL for a basic test-case expressing this bug.

This bug had been found in firefox 3.6.6 for Mac/Window and Minefield 4.0b2pre so I suspect it's core and affecting all versions.

Reproducible: Always

Steps to Reproduce:
1. visit a page that has at least one contenteditable=true div
2. try selecting a word in an input by double clicking on it.
Actual Results:  
the word can't be selected by double or triple clicking wether the field has focus or not.

Expected Results:  
the word or parts of it should be selected by double-clicking.

default theme, please visit http://www.mathieusavard.info/bug/a.html for the basic test case.
Comment 1 Martijn Wargers [:mwargers] (not working for Mozilla) 2011-08-07 13:37:20 PDT
Created attachment 551345 [details]
testcase from the url
Comment 2 Graeme McCutcheon [:graememcc] 2011-09-22 15:51:37 PDT
I have a patch in the works for bug 686203 - not quite ready for Bugzilla yet - that should fix this too.
Comment 3 Graeme McCutcheon [:graememcc] 2012-04-19 07:58:33 PDT
Created attachment 616574 [details] [diff] [review]
Test

Testcase. Fails in a tree without the patch from bug 686203. Passes with 686203 landed.
Comment 4 :Ehsan Akhgari 2012-04-19 12:33:12 PDT
Comment on attachment 616574 [details] [diff] [review]
Test

Review of attachment 616574 [details] [diff] [review]:
-----------------------------------------------------------------

Looks great, thanks!

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