Bug 89076
| Summary: | [Mac, WK2] A grammar marker flickers while typing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Hironori Bono <hbono> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | enrica, jiapu.mail |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.7 | ||
Hironori Bono
Greetings,
Even though I thought this was a regression of my r117470 <http://trac.webkit.org/changeset/117470> for the first time, it seem to happen before my change (at least on Safari 5.1.3 on OS X Lion and WebKit nightly r112532).
Steps to reproduce:
1. Enable the "Check grammar while spelling" item from a manu bar "Edit" -> "Spelling and Grammar".
2. Type "You has ". (Safari adds a green underline below of the word "has".)
3. Type "th".
Expected Results:
Safari keeps the green underline below of the word "has".
Actual Results:
Safari removes the green underline.
It seems when we type "th", Editor::respondToChangedSelection() removed the grammar marker. Even though my r117470 did not prevent Editor::respondToChangedSelection() from removing grammar markers (*1), is it better to prevent the function from deleting grammar markers? (I do not have background of the original function and I'm not sure that I can change this behavior.)
(*1) http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp&l=379
Regards,
Hironori Bono
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |