<?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>120121</bug_id>
          
          <creation_ts>2013-08-21 10:35:03 -0700</creation_ts>
          <short_desc>Fix startOfWord method to not include white space between words.</short_desc>
          <delta_ts>2013-09-05 18:33:50 -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>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>119829</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jonlee</cc>
    
    <cc>rniwa</cc>
    
    <cc>roger_fong</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>919517</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-21 10:35:03 -0700</bug_when>
    <thetext>In VisibileUnits.cpp.
Consider startOfWord for the boundary argument LEFT_WORD_IF_ON_BOUNDARY.
If the current position of the caret is at the start of a word, that is considered on the boundary.
The method in this case returns the previous boundary hoping to get the start of the previous word.
However, instead it just returns the end of the previous word, as that is indeed the previous boundary.

Will fix this so that startOfWord does not treat the whitespace between words as boundaries.
I&apos;m not sure yet whether it makes sense to ignore situations where there is more than one character being used as whitespace between words since that seems to be more deliberate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919518</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-08-21 10:35:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/14797275&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919961</commentid>
    <comment_count>2</comment_count>
      <attachid>209392</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 13:57:12 -0700</bug_when>
    <thetext>Created attachment 209392
patch

This just ignores a single whitespace character between words...
I&apos;m not yet sure I want to extend this to more than one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919994</commentid>
    <comment_count>3</comment_count>
      <attachid>209392</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-22 15:38:16 -0700</bug_when>
    <thetext>Comment on attachment 209392
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=209392&amp;action=review

&gt; Source/WebCore/ChangeLog:3
&gt; +        &lt;https://bugs.webkit.org/show_bug.cgi?id=120119&gt; Fix startOfWord method to not include white space between words.

This is a major change very low at the editing stack. I&apos;ll be surprised if it doesn&apos;t change any behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919997</commentid>
    <comment_count>4</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 15:51:07 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 209392 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=209392&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:3
&gt; &gt; +        &lt;https://bugs.webkit.org/show_bug.cgi?id=120119&gt; Fix startOfWord method to not include white space between words.

I liked to the wrong bug in my changelog -_-

&gt; 
&gt; This is a major change very low at the editing stack. I&apos;ll be surprised if it doesn&apos;t change any behavior.

I&apos;ll try to find a good way to test this on both  mac and windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>919999</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-22 16:00:38 -0700</bug_when>
    <thetext>Looks like this patch is failing a bunch of tests, EWS just couldn&apos;t make up its mind enough to tell us about that. You can see the failures if you click on a yellow bubble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920013</commentid>
    <comment_count>6</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 16:34:05 -0700</bug_when>
    <thetext>Actually I can&apos;t imagine this working in the more general case at all.
startOfWord calls isStartOfWord, which calls startOfWord....etc etc...my manual tests were clearly not extensive enough.

Will rework things or find a higher level place to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920018</commentid>
    <comment_count>7</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 16:49:47 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Actually I can&apos;t imagine this working in the more general case at all.
&gt; startOfWord calls isStartOfWord, which calls startOfWord....etc etc...my manual tests were clearly not extensive enough.
&gt; 
&gt; Will rework things or find a higher level place to fix this.

So in webkit, the white space between words also counts as a word. So no change needs to be made to this file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>920045</commentid>
    <comment_count>8</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-22 17:45:52 -0700</bug_when>
    <thetext>Holding on that thought, need to first investigate the impact of this on text navigation in screen readers that use iaccessible text like nvda</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921097</commentid>
    <comment_count>9</comment_count>
      <attachid>209392</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-08-26 11:18:09 -0700</bug_when>
    <thetext>Comment on attachment 209392
patch

r- to help clear the r? queue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925343</commentid>
    <comment_count>10</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-09-05 18:33:40 -0700</bug_when>
    <thetext>Not a bug, there are other ways of navigating through words while ignoring white space in place.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>209392</attachid>
            <date>2013-08-22 13:57:12 -0700</date>
            <delta_ts>2013-08-26 11:18:09 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>1730</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE1NDQwMCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE5IEBACisyMDEzLTA4LTIxICBSb2dlciBG
b25nICA8cm9nZXJfZm9uZ0BhcHBsZS5jb20+CisKKyAgICAgICAgPGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjAxMTk+IEZpeCBzdGFydE9mV29yZCBtZXRob2QgdG8g
bm90IGluY2x1ZGUgd2hpdGUgc3BhY2UgYmV0d2VlbiB3b3Jkcy4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKyAgICAgICAgCisgICAgICAgIENvbnNpZGVyIHN0YXJ0T2ZX
b3JkIGZvciB0aGUgYm91bmRhcnkgYXJndW1lbnQgTEVGVF9XT1JEX0lGX09OX0JPVU5EQVJZLgor
ICAgICAgICBJZiB0aGUgY3VycmVudCBwb3NpdGlvbiBvZiB0aGUgY2FyZXQgaXMgYXQgdGhlIHN0
YXJ0IG9mI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ID0gYy5uZXh0KCk7Ci0gICAgICAgIGlmIChw
LmlzTnVsbCgpKQorICAgIH0gZWxzZSBpZiAoc2lkZSA9PSBMZWZ0V29yZElmT25Cb3VuZGFyeSkg
eworICAgICAgICBpZiAoaXNTdGFydE9mUGFyYWdyYXBoKGMpKQogICAgICAgICAgICAgcmV0dXJu
IGM7CisKKyAgICAgICAgcCA9IGMucHJldmlvdXMoKTsKICAgICB9CisgICAgCisgICAgaWYgKHAu
aXNOdWxsKCkpCisgICAgICAgIHJldHVybiBjOworCisgICAgaWYgKGlzU3RhcnRPZldvcmQocCkp
CisgICAgICAgIHJldHVybiBwOwogICAgIHJldHVybiBwcmV2aW91c0JvdW5kYXJ5KHAsIHN0YXJ0
V29yZEJvdW5kYXJ5KTsKIH0KIAo=
</data>
<flag name="review"
          id="231396"
          type_id="1"
          status="-"
          setter="cfleizach"
    />
          </attachment>
      

    </bug>

</bugzilla>