Bug 7155

Summary: TinyMCE: Selection lost when clicking on <select> element.
Product: WebKit Reporter: Moxiecode Systems <spam>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: ian, lweintraub, mozillabug321, webkit
Priority: P3 Keywords: HasReduction
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://tinymce.moxiecode.com
Bug Depends on:    
Bug Blocks: 6627    
Attachments:
Description Flags
Testcase none

Description Moxiecode Systems 2006-02-09 06:28:30 PST
Expected Results: 
When a selection is made and the <select> element activated (to show dropdown) the selection should remain, just as when you do something with a popup window.

What I got: Selection is lost instead of "grayed" out like when a popup is made.

Steps to reproduce:

1) Go to http://tinymce.moxiecode.com/example.php?example=true
2) Select some text, click on one of the dropdowns for selecting font/fontsize etc.
3) The selection is lost.

Try the same thing but with clicking on the color selector for a popup or similar, selection is left in the background but grayed out.

You should probably construct your own testcase, since the current version has some workarounds implemented for this (for older Safari versions).
Comment 1 Aldo Hoeben 2006-02-10 04:55:38 PST
See http://hoeben.net/files/webkit/repro7155.html for a simple repro document.

Selection in the contenteditable div is cleared when touching the <select>
Comment 2 Joost de Valk (AlthA) 2006-02-14 04:13:04 PST
Created attachment 6481 [details]
Testcase

Added Aldo's testcase to the bug itself.
Comment 3 Maciej Stachowiak 2006-08-12 22:53:29 PDT
Seems to work with dev versions of TinyMCE, for example http://tinymce.moxiecode.com/test/examples/example_full.htm
Comment 4 Ted Rust 2007-07-31 23:26:44 PDT
Tested with Safari 3.0.3 on OS X.  This is still a valid bug.  However, I did notice something interesting in the details.  The first time you click on any given drop down menu, the selection is eradicated.  However, any subsequent clicks on that same menu, the selection is sustained.  I do not know if this was the case prior to 3.0.3.
Comment 5 Robert Blaut 2008-02-10 13:03:14 PST
I've tested the test case in Webkit r30119 and I don't see buggy behavior. Is it fixed? Any confirmations?
Comment 6 Mark Rowe (bdash) 2008-02-29 16:51:56 PST
The behaviour of TOT on the attached test case matches that of Firefox 2.  Firefox 3 appears to have regressed and exhibits similar behaviour to that attributed to WebKit in the original report.

Closing as FIXED as we now match the reporter's expectations.