<?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>250484</bug_id>
          
          <creation_ts>2023-01-11 15:22:20 -0800</creation_ts>
          <short_desc>REGRESSION(258307@main) ASSERTION FAILED: scale == [webView-&gt;_scrollView zoomScale]</short_desc>
          <delta_ts>2023-01-12 11:50:50 -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>WebKit Misc.</component>
          <version>WebKit 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jenner">jenner</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>thorton</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1924914</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-01-11 15:22:20 -0800</bug_when>
    <thetext>The following 7 API-tests are crashing/hitting an assertion on iOS Debug:

TestWebKitAPI.AnimatedResize.ChangeFrameAndMinimumEffectiveDeviceWidthDuringAnimatedResize
TestWebKitAPI.AnimatedResize.OverrideLayoutSizeChangesDuringAnimatedResizeSucceed
TestWebKitAPI.AnimatedResize.ResizeWithContentHiddenCompletes
TestWebKitAPI.AnimatedResize.ResizeWithContentHiddenWithSubsequentNoOpResizeCompletes
TestWebKitAPI.AnimatedResize.AnimatedResizeBlocksDoAfterNextPresentationUpdate
TestWebKitAPI.AnimatedResize.AnimatedResizeBlocksViewportFitChanges
TestWebKitAPI.RestoreScrollPositionTests.RestoreScrollPositionDuringResize


HISTORY:
https://results.webkit.org/?suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;test=TestWebKitAPI.AnimatedResize.ChangeFrameAndMinimumEffectiveDeviceWidthDuringAnimatedResize&amp;test=TestWebKitAPI.AnimatedResize.OverrideLayoutSizeChangesDuringAnimatedResizeSucceed&amp;test=TestWebKitAPI.AnimatedResize.ResizeWithContentHiddenCompletes&amp;test=TestWebKitAPI.AnimatedResize.ResizeWithContentHiddenWithSubsequentNoOpResizeCompletes&amp;test=TestWebKitAPI.AnimatedResize.AnimatedResizeBlocksDoAfterNextPresentationUpdate&amp;test=TestWebKitAPI.AnimatedResize.AnimatedResizeBlocksViewportFitChanges&amp;test=TestWebKitAPI.RestoreScrollPositionTests.RestoreScrollPositionDuringResize


Assertion/Crash TEXT:
        ASSERTION FAILED: scale == [webView-&gt;_scrollView zoomScale]
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm(567) : CGFloat contentZoomScale(WKWebView *)
        1   0x1152380d9 WTFCrash
        2   0x1349681cb WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x135e31601 contentZoomScale(WKWebView*)
        4   0x135e47821 -[WKWebView(WKPrivateIOS) _beginAnimatedResizeWithUpdates:]
        5   0x103f334ac AnimatedResize_ChangeFrameAndMinimumEffectiveDeviceWidthDuringAnimatedResize_Test::TestBody()
        6   0x10493668b void testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::Test, void&gt;(testing::Test*, void (testing::Test::*)(), char const*)
        7   0x10490d19a void testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::Test, void&gt;(testing::Test*, void (testing::Test::*)(), char const*)
        8   0x10490d0e3 testing::Test::Run()
        9   0x10490e121 testing::TestInfo::Run()
        10  0x10490f1a4 testing::TestSuite::Run()
        11  0x10491d89c testing::internal::UnitTestImpl::RunAllTests()
        12  0x10493aa3b bool testing::internal::HandleSehExceptionsInMethodIfSupported&lt;testing::internal::UnitTestImpl, bool&gt;(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
        13  0x10491d27a bool testing::internal::HandleExceptionsInMethodIfSupported&lt;testing::internal::Uni
tTestImpl, bool&gt;(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)
        14  0x10491d165 testing::UnitTest::Run()
        15  0x103f296d1 RUN_ALL_TESTS()
        16  0x103f29666 TestWebKitAPI::TestsController::run(int, char**)
        17  0x1048e12dc main
        18  0x1076902bf (null)
        19  0x11518352e (null)
        Child process terminated with signal 11: Segmentation fault

https://build.webkit.org/#/builders/663/builds/568/steps/18/logs/stdio



I was able to reproduce all of these assertions/crashes by running the test as follows:

run-api-tests &lt;insert_test_name_here&gt; 


I was able to reproduce the crash as far back as 258307@main, but all tests passed when ran at 258306@main. So it appears that 258307@main is our culprit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924915</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-11 15:23:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/104142370&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924955</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2023-01-11 17:27:57 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8554</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925104</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-12 11:50:47 -0800</bug_when>
    <thetext>Committed 258842@main (80bba9e9dc19): &lt;https://commits.webkit.org/258842@main&gt;

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

    </bug>

</bugzilla>