<?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>39402</bug_id>
          
          <creation_ts>2010-05-19 21:31:43 -0700</creation_ts>
          <short_desc>[chromium] disable spelling suggestions if spellcheck=false</short_desc>
          <delta_ts>2010-05-19 22:36:16 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Chang">tony</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>228178</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-05-19 21:31:43 -0700</bug_when>
    <thetext>[chromium] disable spelling suggestions if spellcheck=false</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228179</commentid>
    <comment_count>1</comment_count>
      <attachid>56558</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-05-19 21:32:58 -0700</bug_when>
    <thetext>Created attachment 56558
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228195</commentid>
    <comment_count>2</comment_count>
      <attachid>56558</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-05-19 22:19:41 -0700</bug_when>
    <thetext>Comment on attachment 56558
Patch

WebKit/chromium/src/ContextMenuClientImpl.cpp:205
 +              data.isSpellCheckingEnabled = true;
Should we leave this line in a case of no misspelledWord?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228198</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-05-19 22:28:16 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 56558 [details])
&gt; WebKit/chromium/src/ContextMenuClientImpl.cpp:205
&gt;  +              data.isSpellCheckingEnabled = true;
&gt; Should we leave this line in a case of no misspelledWord?

I left it in to be consistent with Safari.  This means that the context menu will still show a check mark by &quot;Spellchecking in this field&quot;.  I did it this way in Safari because you can imagine a div with spellchecking enabled, with a single span inside it that has spellchecking disabled.  It seems more consistent to treat the whole field as &quot;spellcheck enabled&quot; even if you click in the span.  I think it would be confusing if the check mark changed depending on which node you happened to click on within a single content editable node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228201</commentid>
    <comment_count>4</comment_count>
      <attachid>56558</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-05-19 22:31:27 -0700</bug_when>
    <thetext>Comment on attachment 56558
Patch

(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; (From update of attachment 56558 [details] [details])
&gt; &gt; WebKit/chromium/src/ContextMenuClientImpl.cpp:205
&gt; &gt;  +              data.isSpellCheckingEnabled = true;
&gt; &gt; Should we leave this line in a case of no misspelledWord?
&gt; 
&gt; I left it in to be consistent with Safari.  This means that the context menu will still show a check mark by &quot;Spellchecking in this field&quot;.  I did it this way in Safari because you can imagine a div with spellchecking enabled, with a single span inside it that has spellchecking disabled.  It seems more consistent to treat the whole field as &quot;spellcheck enabled&quot; even if you click in the span.  I think it would be confusing if the check mark changed depending on which node you happened to click on within a single content editable node.

Ok, that&apos;s reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>228202</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-05-19 22:35:44 -0700</bug_when>
    <thetext>Committed r59819: &lt;http://trac.webkit.org/changeset/59819&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>56558</attachid>
            <date>2010-05-19 21:32:58 -0700</date>
            <delta_ts>2010-05-19 22:36:16 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-39402-20100519213257.patch</filename>
            <type>text/plain</type>
            <size>1770</size>
            <attacher name="Tony Chang">tony</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cgYi9XZWJLaXQvY2hyb21pdW0v
Q2hhbmdlTG9nCmluZGV4IDhjNTYyNTNlODM4MWM4YjNiMzUwOGJhMjk0Njk5MWYxMmFkNzZmZjEu
LjBmMTVmZmI0N2ExNjY0OGNjNzM1OThlZGE5ZWFhZGI2M2IyOGY0YTggMTAwNjQ0Ci0tLSBhL1dl
YktpdC9jaHJvbWl1bS9DaGFuZ2VMb2cKKysrIGIvV2ViS2l0L2Nocm9taXVtL0NoYW5nZUxvZwpA
QCAtMSwzICsxLDE2IEBACisyMDEwLTA1LTE5ICBUb255IENoYW5nICA8dG9ueUBjaHJvbWl1bS5v
cmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgW2No
cm9taXVtXSBkaXNhYmxlIHNwZWxsaW5nIHN1Z2dlc3Rpb25zIGlmIHNwZWxsY2hlY2s9ZmFsc2UK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM5NDAyCisg
ICAgICAgIAorICAgICAgICBUaGlzIGlzIHRoZSBDaHJvbWl1bSBmaXggZm9yIGJ1ZyAyNTYzOSB0
aGF0IHdhcyBmaXhlZCBpbiB0aGUKKyAgIC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kpIHsKICAgICAgICAgICAgIGRhdGEuaXNTcGVsbENoZWNraW5nRW5h
YmxlZCA9IHRydWU7Ci0gICAgICAgICAgICBkYXRhLm1pc3NwZWxsZWRXb3JkID0gc2VsZWN0TWlz
c3BlbGxlZFdvcmQoZGVmYXVsdE1lbnUsIHNlbGVjdGVkRnJhbWUpOworICAgICAgICAgICAgLy8g
U3BlbGxjaGVja2luZyBtaWdodCBiZSBlbmFibGVkIGZvciB0aGUgZmllbGQsIGJ1dCBjb3VsZCBi
ZSBkaXNhYmxlZCBvbiB0aGUgbm9kZS4KKyAgICAgICAgICAgIGlmIChtX3dlYlZpZXctPmZvY3Vz
ZWRXZWJDb3JlRnJhbWUoKS0+ZWRpdG9yKCktPnNwZWxsQ2hlY2tpbmdFbmFibGVkSW5Gb2N1c2Vk
Tm9kZSgpKQorICAgICAgICAgICAgICAgIGRhdGEubWlzc3BlbGxlZFdvcmQgPSBzZWxlY3RNaXNz
cGVsbGVkV29yZChkZWZhdWx0TWVudSwgc2VsZWN0ZWRGcmFtZSk7CiAgICAgICAgIH0KICAgICB9
CiAK
</data>
<flag name="review"
          id="41000"
          type_id="1"
          status="+"
          setter="tkent"
    />
          </attachment>
      

    </bug>

</bugzilla>