<?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>117037</bug_id>
          
          <creation_ts>2013-05-30 11:45:17 -0700</creation_ts>
          <short_desc>fast/dom/location-new-window-no-crash.html times out flakily on mac-wk2</short_desc>
          <delta_ts>2013-05-30 14:31:39 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jer.noble</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>895608</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 11:45:17 -0700</bug_when>
    <thetext>http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK2%20(Tests)/r150969%20(9349)/results.html

I can reproduce locally as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895611</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 11:53:12 -0700</bug_when>
    <thetext>Huh, I put logging in where we call notifydone (the third one), and it is getting called:

CONSOLE MESSAGE: line 8: starting
CONSOLE MESSAGE: line 49: closing
CONSOLE MESSAGE: line 57: closed
FAIL: Timed out waiting for notifyDone to be called</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895657</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 13:14:21 -0700</bug_when>
    <thetext>setTopLoadingFrame 0x7fbefaf3d9b0
setTopLoadingFrame 0x0
setTopLoadingFrame 0x7fbefad09040
TestRunner::notifyDone isTestRunning: 1, waitToDump: 1, topLoadingFrame: 0x7fbefad09040

(and then notifyDone bails because topLoadingFrame isn&apos;t 0)

So I think this is failing because we&apos;re closing the subwindow before it&apos;s finished loading, leaving WKTR thinking that it still has a pending load.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895658</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 13:22:08 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; setTopLoadingFrame 0x7fbefaf3d9b0
&gt; setTopLoadingFrame 0x0
&gt; setTopLoadingFrame 0x7fbefad09040
&gt; TestRunner::notifyDone isTestRunning: 1, waitToDump: 1, topLoadingFrame: 0x7fbefad09040
&gt; 
&gt; (and then notifyDone bails because topLoadingFrame isn&apos;t 0)
&gt; 
&gt; So I think this is failing because we&apos;re closing the subwindow before it&apos;s finished loading, leaving WKTR thinking that it still has a pending load.

The good case looks like this:

setTopLoadingFrame 0x7fa8a3e2a8d0
setTopLoadingFrame 0x0
TestRunner::notifyDone isTestRunning: 1, waitToDump: 1, topLoadingFrame: 0x0
InjectedBundlePage::dump
setTopLoadingFrame 0x0

So the subwindow never starts loading before we dump.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895669</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 14:10:41 -0700</bug_when>
    <thetext>I&apos;m going to add a 0-delay timeout to the test because I&apos;m not sure how to fix the WKTR problem, and file another bug about the general issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895670</commentid>
    <comment_count>5</comment_count>
      <attachid>203381</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 14:12:36 -0700</bug_when>
    <thetext>Created attachment 203381
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895672</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 14:13:48 -0700</bug_when>
    <thetext>I filed https://bugs.webkit.org/show_bug.cgi?id=117044 about the more general fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895674</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-30 14:31:34 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/150987</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>203381</attachid>
            <date>2013-05-30 14:12:36 -0700</date>
            <delta_ts>2013-05-30 14:24:05 -0700</delta_ts>
            <desc>patch</desc>
            <filename>test.diff</filename>
            <type>text/plain</type>
            <size>1879</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCBiMGU0MjU4Li44NTgzZmQ2IDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTMtMDUt
MzAgIFRpbSBIb3J0b24gIDx0aW1vdGh5X2hvcnRvbkBhcHBsZS5jb20+CisKKyAgICAgICAgZmFz
dC9kb20vbG9jYXRpb24tbmV3LXdpbmRvdy1uby1jcmFzaC5odG1sIHRpbWVzIG91dCBmbGFraWx5
IG9uIG1hYy13azIKKyAgICAgICAgaHR0cHM6Ly9idWdzL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CJ0ZXN0V2luZG93LmxvY2F0aW9uLnBhdGhuYW1l
IiwgIidibGFuayciKTsgLy8gRmlyZWZveCByZXR1cm5zIHRoZSBlbXB0CiBzaG91bGRCZSgidGVz
dFdpbmRvdy5sb2NhdGlvbi5zZWFyY2giLCAiJyciKTsKIHNob3VsZEJlKCJ0ZXN0V2luZG93Lmxv
Y2F0aW9uLmhhc2giLCAiJyciKTsKIAotdGVzdFdpbmRvdy5jbG9zZSgpOwotCi1pZiAod2luZG93
LnRlc3RSdW5uZXIpIHsKLSAgICBmdW5jdGlvbiBkb25lSGFuZGxlcigpCi0gICAgewotICAgICAg
ICBpZiAodGVzdFdpbmRvdy5jbG9zZWQpIHsKLSAgICAgICAgICAgIHRlc3RSdW5uZXIubm90aWZ5
RG9uZSgpOwotICAgICAgICAgICAgcmV0dXJuOworc2V0VGltZW91dChmdW5jdGlvbiAoKSB7Cisg
ICAgdGVzdFdpbmRvdy5jbG9zZSgpOworCisgICAgaWYgKHdpbmRvdy50ZXN0UnVubmVyKSB7Cisg
ICAgICAgIGZ1bmN0aW9uIGRvbmVIYW5kbGVyKCkKKyAgICAgICAgeworICAgICAgICAgICAgaWYg
KHRlc3RXaW5kb3cuY2xvc2VkKSB7CisgICAgICAgICAgICAgICAgdGVzdFJ1bm5lci5ub3RpZnlE
b25lKCk7CisgICAgICAgICAgICAgICAgcmV0dXJuOworICAgICAgICAgICAgfQorICAgICAgICAg
ICAgc2V0VGltZW91dChkb25lSGFuZGxlciwgMCk7CiAgICAgICAgIH0KLSAgICAgICAgc2V0VGlt
ZW91dChkb25lSGFuZGxlciwgMCk7CisgICAgICAgIGRvbmVIYW5kbGVyKCk7CiAgICAgfQotICAg
IGRvbmVIYW5kbGVyKCk7Ci19Cit9LCAwKTsKXCBObyBuZXdsaW5lIGF0IGVuZCBvZiBmaWxlCg==
</data>
<flag name="review"
          id="224823"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>