Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#12111 closed defect (fixed)

FontChoice selection does not work in Chrome

Reported by: Douglas Hays Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.6
Component: Editor Version: 1.5
Keywords: Cc:
Blocked By: Blocking:


Run test_FontChoice in Chrome 8. Position the cursor anywhere in either Editor. The font size box changes to the correct font size. Now change the combobox to small. It immediately reverts to xx-small even if it was large before being changed. This is causing a failure in the robot/Editor_FontChoice.html test.

Change History (6)

comment:1 Changed 11 years ago by Jared Jurkiewicz

Owner: Jared Jurkiewicz deleted

Disowning as I cannot promise to have time to look at this any time soon.

comment:2 Changed 11 years ago by Katie Vance

This is a bug in chrome. After executing the command to modify the fontsize, queryCommandValue returns the wrong fontsize (causing our box to display incorrect data). I opened a chrome bug for this issue with a simple test case to reproduce the problem:

I'm still investigating if there is a way we can work around the problem, but have not found anything yet.

It's important to note that the fontsize does get changed, just the text box is displaying the wrong font size.

comment:3 Changed 11 years ago by Jared Jurkiewicz

Milestone: tbd1.6
Owner: set to Jared Jurkiewicz

The behavior change is that WebKit? now requires a selection and the tests were collapsing the selection. By modifying the tests to not collapse the selection, the tests pass. Will be checking at in as a workaround to the behavioral change and closing this.

comment:4 Changed 11 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [23436]) Fixing webkit behavior change. fixes #12111

comment:5 Changed 11 years ago by bill

Thanks for fixing the regression test. Hmm there's still (arguably?) a bug: It's typical for users to type some text, change the font size drop down to a different value, and then type some more text, expecting the new text to have the specified font size. Is there no way to get that to work?

Perhaps this is just a recent webkit bug that webkit will fix. I noticed that !CKEditor has the same problem as dojo. Google docs lets the user change the font size (from an empty selection), and the new size takes effect, although it has another bug that the drop down displays the wrong size.

comment:6 Changed 9 years ago by bill

The above scenario is now working on the latest Chrome.

Note: See TracTickets for help on using tickets.