[Bug 303269]

Ehsan-mozilla 303269 at bugs.launchpad.net
Mon Aug 8 20:29:48 UTC 2011


(In reply to Dão Gottwald [:dao] from comment #72)
> (In reply to comment #71)
> > ::: layout/reftests/editor/338427-2.html
> > @@ +6,5 @@
> > > +    editor.focus();
> > > +    window.setTimeout(function() {
> > > +        editor.blur();
> > > +        document.documentElement.className = '';
> > > +    }, 1000); // XXX: 0 timeout is not enought to trigger a focus event.
> > 
> > Change this to:
> > 
> > setTimeout(function() {
> >   setTimeout(function() {
> >     editor.blur();
> >     document....
> >   }, 0);
> > }, 0);
> > 
> > ::: layout/reftests/editor/338427-3.html
> > @@ +7,5 @@
> > > +    editor.focus();
> > > +    window.setTimeout(function() {
> > > +        editor.blur();
> > > +        document.documentElement.className = '';
> > > +    }, 1000); // XXX: 0 timeout is not enought to trigger a focus event.
> > 
> > Same thing here.
> 
> Err, why isn't this using focus event listeners?

Because spellchecking doesn't happen on focus, we post an event to the
event loop and start the spellchecking when that event is processed.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/303269

Title:
  Automatically select language for spell check based on user input

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/303269/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list