<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>89076</bug_id>
          
          <creation_ts>2012-06-14 01:46:45 -0700</creation_ts>
          <short_desc>[Mac, WK2] A grammar marker flickers while typing</short_desc>
          <delta_ts>2012-06-14 09:38:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hironori Bono">hbono</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>enrica</cc>
    
    <cc>jiapu.mail</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>648947</commentid>
    <comment_count>0</comment_count>
    <who name="Hironori Bono">hbono</who>
    <bug_when>2012-06-14 01:46:45 -0700</bug_when>
    <thetext>Greetings,

Even though I thought this was a regression of my r117470 &lt;http://trac.webkit.org/changeset/117470&gt; 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 &quot;Check grammar while spelling&quot; item from a manu bar &quot;Edit&quot; -&gt; &quot;Spelling and Grammar&quot;.
2. Type &quot;You has &quot;. (Safari adds a green underline below of the word &quot;has&quot;.)
3. Type &quot;th&quot;.

Expected Results:
Safari keeps the green underline below of the word &quot;has&quot;.

Actual Results:
Safari removes the green underline.

It seems when we type &quot;th&quot;, 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&apos;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&amp;l=379

Regards,

Hironori Bono</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>