<?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>61319</bug_id>
          
          <creation_ts>2011-05-23 16:27:41 -0700</creation_ts>
          <short_desc>fast/events/selectstart-by-drag.html fails on Windows</short_desc>
          <delta_ts>2011-05-24 15:29:52 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>56347</dependson>
    
    <dependson>19489</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>jberlin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>408452</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-05-23 16:27:41 -0700</bug_when>
    <thetext>fast/events/selectstart-by-drag.html has been failing on Windows ever since it was checked in:

 Initial state: PASS
-Mouse down: PASS
-Moving slightly to the right: PASS
-Moving slightly to the left: PASS
+Mouse down: FAIL - expected selection to be caret but was range
+Moving slightly to the right: FAIL - expected selection to be caret but was range
+Moving slightly to the left: FAIL - expected selection to be caret but was range
 Moving to the right: PASS
 Moving further to the right: PASS
-Moving back to the left: PASS
+Moving back to the left: FAIL - expected selection to be caret but was range
 Moving to the right again: PASS
 Mouse down on the right: PASS
 Moving to the left: PASS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408777</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-24 05:01:46 -0700</bug_when>
    <thetext>Ryosuke checked in expected failure results in r87105 (thanks!).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408778</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-24 05:02:23 -0700</bug_when>
    <thetext>Ryosuke, do you think this represents a bug in WebKit, or just a bug in the test or test harness? If the latter, we should move this bug to the Tools/Tests component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408922</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-05-24 09:31:53 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Ryosuke, do you think this represents a bug in WebKit, or just a bug in the test or test harness? If the latter, we should move this bug to the Tools/Tests component.

It&apos;s hard to tell.  It&apos;s very odd that the first click on a page creates a range selection though.  There might be a bug in Windows port or Windows port&apos;s DRT because Chromium Windows passed the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408931</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-24 09:44:55 -0700</bug_when>
    <thetext>Maybe a click from a previous test is causing the click in this test to be counted as a double-click? We&apos;ve seen that before. See bug 56347.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408934</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-05-24 09:49:31 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Maybe a click from a previous test is causing the click in this test to be counted as a double-click? We&apos;ve seen that before. See bug 56347.

That is an annoying bug.  But I&apos;m confused as to how that happens.  m_clickCount is stored in EventHandler but that class exists per frame.  If we&apos;re loading a new page, we&apos;ll surely create a new frame, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408936</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-24 09:53:46 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Maybe a click from a previous test is causing the click in this test to be counted as a double-click? We&apos;ve seen that before. See bug 56347.
&gt; 
&gt; That is an annoying bug.  But I&apos;m confused as to how that happens.  m_clickCount is stored in EventHandler but that class exists per frame.  If we&apos;re loading a new page, we&apos;ll surely create a new frame, right?

EventHandler::m_clickCount is set based on the PlatformMouseEvent that&apos;s passed in. The PlatformMouseEvent has a click count of 2 (or more) due to WebKit not clearing its global click count on navigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408939</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-05-24 09:57:28 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; EventHandler::m_clickCount is set based on the PlatformMouseEvent that&apos;s passed in. The PlatformMouseEvent has a click count of 2 (or more) due to WebKit not clearing its global click count on navigation.

Where is this global counter stored?  It seems like we should just fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>408945</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-05-24 10:03:42 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; EventHandler::m_clickCount is set based on the PlatformMouseEvent that&apos;s passed in. The PlatformMouseEvent has a click count of 2 (or more) due to WebKit not clearing its global click count on navigation.
&gt; 
&gt; Where is this global counter stored?  It seems like we should just fix that.

I&apos;ll put the info in bug 56347.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>