At the moment, the "Check Spelling" entry in context menu is showed for every input type with a text field. We should not show "Check Spelling" when the input type is 'url', 'email' or 'tel'. In other words, we should show "Check Spelling" only for input element in 'text' and 'search' types.
This bug should be used to test context menus with new input types.
Created attachment 490755 [details] [diff] [review] Patch v1 I have to check that the tests are fine on the try server given that they are disabled on Linux :(
The patch seems to work but I can't get the tests working (the attached ones have a few typos): the context menu have "Check Spelling" and even sometimes other menus related to dictionnaries. The only reason I see is the way the test work, InlineSpellCheckerUI.canSpell must always returns 'true' (uninit() isn't called?). Gavin, would you be fine to have the patch pushed without the tests and add the tests later? I feel guilty to spend more time on that simple feature but I think it might be nice to have it.
I've finally be able to find what was making the tests failing. It's because of a bug when there is an editable div, see bug 622283. Because of that, I will have to create another file for the tests. I'm going to attach the one-liner patch here and open a new bug for a input context menu test file.
Created attachment 500530 [details] [diff] [review] Patch v1.1 This patch is changing one line and updating a comment.
I have open bug 622284 for the tests.
Comment on attachment 500530 [details] [diff] [review] Patch v1.1 Asking a review to dao in case of his review queue is smaller.
Comment on attachment 500530 [details] [diff] [review] Patch v1.1 r=sdwilsh Feel free to punt the review of the tests my way too (I see it has a patch).
Verified on: Mozilla/5.0 (Windows NT 6.1; rv:6.0a1) Gecko/20110505 Firefox/6.0a1