<?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>34069</bug_id>
          
          <creation_ts>2010-01-24 23:18:02 -0800</creation_ts>
          <short_desc>REGRESSION: editing/selection/doubleclick-beside-cr-span.html times out on Windows</short_desc>
          <delta_ts>2010-02-01 16:08:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>hamaji</cc>
    
    <cc>morrita</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>184176</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-24 23:18:02 -0800</bug_when>
    <thetext>REGRESSION: editing/selection/doubleclick-beside-cr-span.html times out on Windows

This seems to have started today.  The windows bots were broken between r53763  and r53783, and I believe it the timeouts started happening during that down time.

Added 6 days ago:
http://trac.webkit.org/browser/trunk/LayoutTests/editing/selection/doubleclick-beside-cr-span.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184560</commentid>
    <comment_count>1</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-01-26 04:45:54 -0800</bug_when>
    <thetext>Hmm... I&apos;m not sure if this is a regression. I ran the test with r53763 and r53783. I didn&apos;t see significant differences between the results of them. I&apos;ve also noticed this test is very slow on Windows (~24 secs on my slow machine). It seems eventSender.leapForward() actually waits on Windows? So, I&apos;m guessing somehow windows bots become slow during the downtime, but I&apos;m not sure at all.

Anyway, if we want to make the bot green, we can change from leapForward(100) to leapForward(50). But, of course, if this is indicating an actual regression, this change just hides the regression...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184588</commentid>
    <comment_count>2</comment_count>
    <who name="MORITA Hajime">morrita</who>
    <bug_when>2010-01-26 07:25:10 -0800</bug_when>
    <thetext>Thanks for the investigation, Hamaji-san.
I don&apos;t have windows box...

&gt; It seems eventSender.leapForward() actually waits on Windows? 
At a glance, the code appears to literally sleep.

in WebKitTools/DumpRenderTree/win/EventSender.cpp,

----
static JSValueRef leapForwardCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
    if (argumentCount &gt; 0) {
        msgQueue[endOfQueue].delay = JSValueToNumber(context, arguments[0], exception);
    }
...
}

and 

void replaySavedEvents(HRESULT* oleDragAndDropReturnValue)
{
...
    if (msgQueue[startOfQueue].delay) {
        ::Sleep(msgQueue[startOfQueue].delay);
        msgQueue[startOfQueue].delay = 0;
    }
...
}

----

I guess it would take long time to run the test case,
and the case would be around timeout border,
timed out recently with small overhead added somewhere.

For this reason, I think making sleep time shorter is reasonable at this time, 
although further investigation to speedup windows layout test is required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186351</commentid>
    <comment_count>3</comment_count>
      <attachid>47828</attachid>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 03:32:19 -0800</bug_when>
    <thetext>Created attachment 47828
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186352</commentid>
    <comment_count>4</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 03:35:42 -0800</bug_when>
    <thetext>I ran the tests with r53762 on build bot and it timed out. So, I guess the timeout happened even before r53762 (or buildbot somehow becomes slower during the windows bots outage?).

http://build.webkit.org/builders/Windows%20Debug%20%28Tests%29/builds/9253</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186366</commentid>
    <comment_count>5</comment_count>
      <attachid>47828</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-01 05:17:21 -0800</bug_when>
    <thetext>Comment on attachment 47828
Patch v1

leapForward does not actually sleep (at least not on the mac).  Instead it just queues the next event with a different time during event playback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186371</commentid>
    <comment_count>6</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 05:29:29 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 47828 [details])
&gt; leapForward does not actually sleep (at least not on the mac).  Instead it just
&gt; queues the next event with a different time during event playback.

Yeah, on Mac, leapForward doesn&apos;t sleep. However, on Windows, it seems leapForward sleeps as Morita-san said.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186429</commentid>
    <comment_count>7</comment_count>
      <attachid>47828</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-02-01 08:14:10 -0800</bug_when>
    <thetext>Comment on attachment 47828
Patch v1

The whole idea of leapForward was to not require sleeping, but I suppose it&apos;s OK to make this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186636</commentid>
    <comment_count>8</comment_count>
      <attachid>47828</attachid>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 16:08:47 -0800</bug_when>
    <thetext>Comment on attachment 47828
Patch v1

Clearing flags on attachment: 47828

Committed r54166: &lt;http://trac.webkit.org/changeset/54166&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186638</commentid>
    <comment_count>9</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 16:08:55 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47828</attachid>
            <date>2010-02-01 03:32:19 -0800</date>
            <delta_ts>2010-02-01 16:08:46 -0800</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-34069-20100201033217.patch</filename>
            <type>text/plain</type>
            <size>1239</size>
            <attacher name="Shinichiro Hamaji">hamaji</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBhNTE0MzU5Li4wNjljMmNhIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTAtMDEt
MzEgIFNoaW5pY2hpcm8gSGFtYWppICA8aGFtYWppQGNocm9taXVtLm9yZz4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBSRUdSRVNTSU9OOiBlZGl0aW5n
L3NlbGVjdGlvbi9kb3VibGVjbGljay1iZXNpZGUtY3Itc3Bhbi5odG1sIHRpbWVzIG91dCBvbiBX
aW5kb3dzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0z
NDA2OQorCisgICAgICAgIE1ha2UgdGhlIHNsZWVwIHRpbWUgc2hvcnRlciBhcyB0aGlzIHRlc3Qg
dGltZWQgb3V0IG9uIFdpbmRvd3MgYm90LgorCisgICAgICAgICogZWRpdGluZy9zZWxlY3Rpb24v
ZG91YmxlY2xpY2stYmVzaWRlLWNyLXNwYW4uaHRtbDoKKwogMjAxMC0wMS0zMSA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