<?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>251312</bug_id>
          
          <creation_ts>2023-01-27 22:47:55 -0800</creation_ts>
          <short_desc>[ iOS BigSur+ ] fast/loader/stateobjects/popstate-does-not-fire-with-page-cache.html is a flaky failure.</short_desc>
          <delta_ts>2023-03-16 14:54:28 -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>New Bugs</component>
          <version>Other</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bri Harris">bharris9</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1929147</commentid>
    <comment_count>0</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-01-27 22:47:55 -0800</bug_when>
    <thetext>fast/loader/stateobjects/popstate-does-not-fire-with-page-cache.html

is a flaky failure on iOS 16, BigSur and later platforms. 

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Floader%2Fstateobjects%2Fpopstate-does-not-fire-with-page-cache.html&amp;limit=10000


Crash Log is attached. 

CRASH LOG TEXT:
@@ -10,8 +10,7 @@
 pageshow fired - persisted=false
 PASS testWindowPopstateFireCount is 0
 going back to page 1 in initial state
-popstate fired with state null
-PASS testWindowPopstateFireCount is 1
+FAIL testWindowPopstateFireCount should be 1. Was 0.
 PASS successfullyParsed is true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929148</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-27 22:48:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/104775065&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929149</commentid>
    <comment_count>2</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-01-27 22:54:49 -0800</bug_when>
    <thetext>I was able to reproduce this failure on iOS 16 Release ToT as follows:

run-webkit-test --ios-simulator fast/loader/stateobjects/popstate-does-not-fire-with-page-cache.html --iteration 100

With the iterations, I was able to reproduce 22 failures. 


I was able to reproduce this failure on Ventura Release ToT as follows:

run-webkit-test fast/loader/stateobjects/popstate-does-not-fire-with-page-cache.html --iteration 100

With the iterations, I was able to reproduce 4 failures of 100.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929152</commentid>
    <comment_count>3</comment_count>
      <attachid>464699</attachid>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-01-27 22:56:07 -0800</bug_when>
    <thetext>Created attachment 464699
text diff</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929155</commentid>
    <comment_count>4</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-01-27 23:06:28 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9279</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929433</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-30 08:52:04 -0800</bug_when>
    <thetext>Test gardening commit 259561@main (df3d1454d73d): &lt;https://commits.webkit.org/259561@main&gt;

Reviewed commits have been landed. Closing PR #9279 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929488</commentid>
    <comment_count>6</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-01-30 12:16:03 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9334</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929497</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-30 12:25:24 -0800</bug_when>
    <thetext>Test gardening commit 259581@main (bda96a710d73): &lt;https://commits.webkit.org/259581@main&gt;

Reviewed commits have been landed. Closing PR #9334 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929592</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-01-30 15:50:42 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9355</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929925</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-31 16:45:21 -0800</bug_when>
    <thetext>Committed 259649@main (67c6a041f39c): &lt;https://commits.webkit.org/259649@main&gt;

Reviewed commits have been landed. Closing PR #9355 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930594</commentid>
    <comment_count>10</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-02-02 12:01:42 -0800</bug_when>
    <thetext>Due to test still failing, reopening. Will mark expectations for macOS while this is being investigated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930597</commentid>
    <comment_count>11</comment_count>
    <who name="Bri Harris">bharris9</who>
    <bug_when>2023-02-02 12:15:31 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9548</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930602</commentid>
    <comment_count>12</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-02 12:35:30 -0800</bug_when>
    <thetext>Test gardening commit 259774@main (c3714cf7be45): &lt;https://commits.webkit.org/259774@main&gt;

Reviewed commits have been landed. Closing PR #9548 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931034</commentid>
    <comment_count>13</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-02-03 16:11:42 -0800</bug_when>
    <thetext>This is the part that is flaky:
```
function onTestWindowPageShow(event)
{
    debug(&quot;pageshow fired - persisted=&quot; + event.persisted);
    setTimeout(() =&gt; {
        // Should not have fired a popstate event since the navigation wasn&apos;t within the same document.
        shouldBe(&quot;testWindowPopstateFireCount&quot;, &quot;0&quot;);
        debug(&apos;going back to page 1 in initial state&apos;);
        setTimeout(function() {testWindow.history.back();}, 0);
    }, 10);
}
```

It seems sometimes `testWindow.history.back()` doesn&apos;t cause a back navigation here and the 10ms delay is what makes it flaky. If we don&apos;t use a 10ms delay, then it consistently fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931055</commentid>
    <comment_count>14</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-02-03 16:56:59 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9637</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931235</commentid>
    <comment_count>15</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-05 15:03:19 -0800</bug_when>
    <thetext>Committed 259873@main (9b11ab322031): &lt;https://commits.webkit.org/259873@main&gt;

Reviewed commits have been landed. Closing PR #9637 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1941963</commentid>
    <comment_count>16</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-16 14:54:28 -0700</bug_when>
    <thetext>Committed 259548.431@safari-7615-branch (d4a83e5b2618): &lt;https://commits.webkit.org/259548.431@safari-7615-branch&gt;

Reviewed commits have been landed. Closing PR #468 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>464699</attachid>
            <date>2023-01-27 22:56:07 -0800</date>
            <delta_ts>2023-01-30 12:37:27 -0800</delta_ts>
            <desc>text diff</desc>
            <filename>251312 - popstate-does-not-fire-with-page-cache-diff.txt</filename>
            <type>text/plain</type>
            <size>641</size>
            <attacher name="Bri Harris">bharris9</attacher>
            
              <data encoding="base64">LS0tIC9Wb2x1bWVzL0RhdGEvd29ya2VyL0FwcGxlLWlPUy0xNi1TaW11bGF0b3ItUmVsZWFzZS1X
SzItVGVzdHMvYnVpbGQvbGF5b3V0LXRlc3QtcmVzdWx0cy9mYXN0L2xvYWRlci9zdGF0ZW9iamVj
dHMvcG9wc3RhdGUtZG9lcy1ub3QtZmlyZS13aXRoLXBhZ2UtY2FjaGUtZXhwZWN0ZWQudHh0Cisr
KyAvVm9sdW1lcy9EYXRhL3dvcmtlci9BcHBsZS1pT1MtMTYtU2ltdWxhdG9yLVJlbGVhc2UtV0sy
LVRlc3RzL2J1aWxkL2xheW91dC10ZXN0LXJlc3VsdHMvZmFzdC9sb2FkZXIvc3RhdGVvYmplY3Rz
L3BvcHN0YXRlLWRvZXMtbm90LWZpcmUtd2l0aC1wYWdlLWNhY2hlLWFjdHVhbC50eHQKQEAgLTEw
LDggKzEwLDcgQEAKIHBhZ2VzaG93IGZpcmVkIC0gcGVyc2lzdGVkPWZhbHNlCiBQQVNTIHRlc3RX
aW5kb3dQb3BzdGF0ZUZpcmVDb3VudCBpcyAwCiBnb2luZyBiYWNrIHRvIHBhZ2UgMSBpbiBpbml0
aWFsIHN0YXRlCi1wb3BzdGF0ZSBmaXJlZCB3aXRoIHN0YXRlIG51bGwKLVBBU1MgdGVzdFdpbmRv
d1BvcHN0YXRlRmlyZUNvdW50IGlzIDEKK0ZBSUwgdGVzdFdpbmRvd1BvcHN0YXRlRmlyZUNvdW50
IHNob3VsZCBiZSAxLiBXYXMgMC4KIFBBU1Mgc3VjY2Vzc2Z1bGx5UGFyc2VkIGlzIHRydWUKIAog
VEVTVCBDT01QTEVURQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>