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

RESOLVED FIXED in mozilla14

Status

()

Core
Selection
--
major
RESOLVED FIXED
7 years ago
5 years ago

People

(Reporter: Mathieu Dumais-Savard, Assigned: graememcc)

Tracking

({testcase})

unspecified
mozilla14
testcase
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

7 years ago
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
Created attachment 551345 [details]
testcase from the url

Updated

6 years ago
Keywords: testcase
Assignee: ehsan → kaze
(Assignee)

Comment 2

6 years ago
I have a patch in the works for bug 686203 - not quite ready for Bugzilla yet - that should fix this too.

Updated

6 years ago
Depends on: 686203
(Assignee)

Comment 3

5 years ago
Created attachment 616574 [details] [diff] [review]
Test

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
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.