Created attachment 549230 patch v2.2 (In reply to comment #67) > (In reply to comment #66) > > > Can you add another test here for the dynamic change case? You can put > > > lang="en-US" on the textarea, then upon load change it to "testing-XX", > > > then > > > .focus() and .blur(). > > > > Actually, this does not work. Calling SetCurrentDictionary to an invalid > > language, does nothing. So an invalid language at startup (or first focus) > > does > > not initialize spellchecker. But an invalid language after spellchecker has > > been initialized to a language does not reset it. > > Hmm, well, nevermind those tests then, I guess. :(
A possibility is to make SetCurrentDictionary handle empty string by disabling spell check. Then, calling SetCurrentDictionary with empty string at start of UpdateCurrentDirectionary. Can you review this ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs