<?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>187605</bug_id>
          
          <creation_ts>2018-07-12 10:02:10 -0700</creation_ts>
          <short_desc>REGRESSION (-r226018): Shift-clicking to extend selection extends it from both ends if granularity is not character</short_desc>
          <delta_ts>2018-07-13 16:01:30 -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>HTML Editing</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=164519</see_also>
          <bug_file_loc>data:text/html,&lt;div&gt;one&lt;br&gt;two&lt;br&gt;three&lt;br&gt;four&lt;br&gt;five&lt;br&gt;six</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1441538</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 10:02:10 -0700</bug_when>
    <thetext>To reproduce this bug, navigate to the URL, then triple-click the word “four”. Then Shift-click in the word “two”, then Shift-click in the word “one”. The selection extends to the words “five” and “six”, but it shouldn’t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441547</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-07-12 10:07:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/42125941&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441769</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 19:34:14 -0700</bug_when>
    <thetext>I can reproduce this with r233395 in macOS High Sierra 10.13.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441771</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 19:44:48 -0700</bug_when>
    <thetext>It also reproduces with built-in Safari in that version of macOS, so it’s not a particularly recent regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441774</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 19:55:00 -0700</bug_when>
    <thetext>I was able to reproduce this all the way back to r226018</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441782</commentid>
    <comment_count>5</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2018-07-12 20:15:24 -0700</bug_when>
    <thetext>Oddly, I&apos;m unable to reproduce this on 10.13.4 (I tried both system Safari and STP 60).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441783</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 20:21:14 -0700</bug_when>
    <thetext>This comes down to the behavior of VisibleSelection::expandUsingGranularity, which makes it at least somewhat related to bug 164519.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441785</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-07-12 20:24:19 -0700</bug_when>
    <thetext>I wonder if there’s some extra global setting or preference that affects this (something like “smart copy and paste”).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>