<?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>241991</bug_id>
          
          <creation_ts>2022-06-24 16:11:57 -0700</creation_ts>
          <short_desc>REGRESSION (251792@main?): [ macOS ][ iOS ] TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture is a flaky failure and crash</short_desc>
          <delta_ts>2022-06-27 16:36:09 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=241932</see_also>
          <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="Karl Rackler">rackler</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>1878285</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2022-06-24 16:11:57 -0700</bug_when>
    <thetext>Description:
TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture

The first failure that I saw on the dashboard was on 6/23/2022 at 251792@main.  The test is flaky crashing on iOS arm64 and failing on iOS X86_64.  The flaky crashing on iOS arm64 may be bot related because other test are failing similarly. The test is flaky failing on macOS. 
The flakiness dashboard indicates that 251792@main may be the commit causing the issue.  There is a good possibility that the test landed this way and the bots did not show the results until later on the timeline.

REPRODUCTION STEPS
I can reproduce this on 251793@main, but unable to reproduce it on 251789@main or earlier but, I was not able to find a commit that seemed relevant; due to the lack of ability to test commits in that range, I cannot pinpoint what change could have caused this.  I was also able to reproduce on 251793@main and ran again test again and it did not reproduce, which adds to the mystery.

Command: 
run-api-tests --debug --iterations 200 TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture

Result: 
Failed
    TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:405
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html&quot;
          url1.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple.html&quot;
        
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:410
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html#a&quot;
          url2.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html&quot;
        
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:415
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple.html&quot;
          lastURL.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html#a&quot;

History:
https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture&amp;limit=50000

run-api-tests stdio: 
Failed
    TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:405
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html&quot;
          url1.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple.html&quot;
        
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:410
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html#a&quot;
          url2.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html&quot;
        
        
        /Volumes/Data/worker/Apple-BigSur-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardList.mm:415
        Expected equality of these values:
          [webView URL].absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple.html&quot;
          lastURL.absoluteString.UTF8String
            Which is: &quot;file:///Volumes/Data/worker/Apple-BigSur-Release-AppleSilicon-WK1-Tests/build/WebKitBuild/Release/TestWebKitAPI.resources/simple2.html#a&quot;

iOS arm64 results: 
https://build.webkit.org/#/builders/529/builds/108
    TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture
        An error was encountered processing the command (domain=NSMachErrorDomain, code=24):
        The operation couldn’t be completed. (Mach error 24 - (os/kern) memory data moved)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878286</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-24 16:12:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/95886849&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878289</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-06-24 16:18:20 -0700</bug_when>
    <thetext>Hmm, `run-api-tests --debug --no-build --iterations 200 TestWebKitAPI.WKBackForwardList.BackForwardNavigationDoesNotSkipItemsWithUserGesture` didn&apos;t reproduce for me.

This test was modified in https://commits.webkit.org/251837@main. I wonder if 251837@main fixed it or if I&apos;m just unable to reproduce due to timing issues.

I guess the bots will tell me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878291</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-06-24 16:25:57 -0700</bug_when>
    <thetext>Ok, I managed to reproduce on an M1 machine. I am investigating. Odds are that the test was already flaky when introduced.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878298</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-06-24 16:56:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1789</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878623</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-27 16:36:07 -0700</bug_when>
    <thetext>Committed 251894@main (2a7a51012dfc): &lt;https://commits.webkit.org/251894@main&gt;

Reviewed commits have been landed. Closing PR #1789 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>