Closed Bug 578771 Opened 14 years ago Closed 12 years ago

Contenteditable element breaks word selection on all other input elements of the page

Categories

(Core :: DOM: Selection, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: matdumsa, Assigned: graememcc)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

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.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → ehsan
Keywords: testcase
Assignee: ehsan → kaze
I have a patch in the works for bug 686203 - not quite ready for Bugzilla yet - that should fix this too.
Depends on: 686203
Attached patch TestSplinter Review
Testcase. Fails in a tree without the patch from bug 686203. Passes with 686203 landed.
Attachment #616574 - Flags: review?(ehsan)
Comment on attachment 616574 [details] [diff] [review]
Test

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

Looks great, thanks!
Attachment #616574 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/febef520842e
Assignee: kaze → graememcc_firefox
Flags: in-testsuite+
Target Milestone: --- → mozilla14
https://hg.mozilla.org/mozilla-central/rev/febef520842e
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: