<?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>231262</bug_id>
          
          <creation_ts>2021-10-05 15:43:35 -0700</creation_ts>
          <short_desc>[ iOS ] fast/events/ios/rotation/resize-iframe-after-orientation-change.html is crashing/ failing</short_desc>
          <delta_ts>2024-03-21 20:55:22 -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>UI Events</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</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=271445</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>ayumi_kojima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ayumi_kojima</cc>
    
    <cc>ben_schwartz</cc>
    
    <cc>hi</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>1800812</commentid>
    <comment_count>0</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-10-05 15:43:35 -0700</bug_when>
    <thetext>fast/events/ios/rotation/resize-iframe-after-orientation-change.html

is constantly crashing on iOS iPhone Debug and flaky (almost constantly) failing on iOS iPhone Release.

History: https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fevents%2Fios%2Frotation%2Fresize-iframe-after-orientation-change.html

Stderr:

ASSERTION FAILED: task.callback
/Volumes/Data/worker/ios-simulator-15-debug/build/Tools/TestRunnerShared/UIScriptContext/UIScriptContext.cpp(95) : void WTR::UIScriptContext::asyncTaskComplete(unsigned int)
1   0x11b218e99 WTFCrash
2   0x11009619b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x11009a59c WTR::UIScriptContext::asyncTaskComplete(unsigned int)
4   0x1100b56df WTR::UIScriptControllerIOS::simulateRotation(WTR::DeviceOrientation*, OpaqueJSValue const*)::$_22::operator()() const
5   0x1100b58bd WTF::BlockPtr&lt;void ()&gt; WTF::BlockPtr&lt;void ()&gt;::fromCallable&lt;WTR::UIScriptControllerIOS::simulateRotation(WTR::DeviceOrientation*, OpaqueJSValue const*)::$_22&gt;(WTR::UIScriptControllerIOS::simulateRotation(WTR::DeviceOrientation*, OpaqueJSValue const*)::$_22)::&apos;lambda&apos;(void*)::operator()(void*) const
6   0x1100b5895 WTF::BlockPtr&lt;void ()&gt; WTF::BlockPtr&lt;void ()&gt;::fromCallable&lt;WTR::UIScriptControllerIOS::simulateRotation(WTR::DeviceOrientation*, OpaqueJSValue const*)::$_22&gt;(WTR::UIScriptControllerIOS::simulateRotation(WTR::DeviceOrientation*, OpaqueJSValue const*)::$_22)::&apos;lambda&apos;(void*)::__invoke(void*)
7   0x110096f92 -[TestRunnerWKWebView _didEndRotation]
8   0x10ffe057e __80-[PlatformWebViewController viewWillTransitionToSize:withTransitionCoordinator:]_block_invoke.56
9   0x1306eb98c -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
10  0x1306e7cbe -[_UIViewControllerTransitionContext _runAlongsideCompletions]
11  0x1306e7a52 -[_UIViewControllerTransitionContext completeTransition:]
12  0x130703c2b __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke_2.182
13  0x13142f0b8 +[UIView _performBlockDelayingTriggeringResponderEvents:forScene:]
14  0x130703bcb __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke.181
15  0x13142a58a -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
16  0x1313faf81 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
17  0x1313fb526 -[UIViewAnimationState animationDidStop:finished:]
18  0x1111999b2 CA::Layer::run_animation_callbacks(void*)
19  0x111967a56 _dispatch_client_callout
20  0x111974e20 _dispatch_main_queue_callback_4CF
21  0x1136fe85d __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
22  0x1136f90ba __CFRunLoopRun
23  0x1136f8103 CFRunLoopRunSpecific
24  0x1140f841c -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
25  0x11004fffd WTR::TestController::platformRunUntil(bool&amp;, WTF::Seconds)
26  0x11001259f WTR::TestController::runUntil(bool&amp;, WTF::Seconds)
27  0x1100748b2 WTR::TestInvocation::invoke()
28  0x11001a153 WTR::TestController::runTest(char const*)
29  0x11001a576 WTR::TestController::runTestingServerLoop()
30  0x110012ef7 WTR::TestController::run()
31  0x1100128d9 WTR::TestController::TestController(int, char const**)

Diff:

--- /Volumes/Data/worker/ios-simulator-15-release-tests-wk2/build/layout-test-results/fast/events/ios/rotation/resize-iframe-after-orientation-change-expected.txt
+++ /Volumes/Data/worker/ios-simulator-15-release-tests-wk2/build/layout-test-results/fast/events/ios/rotation/resize-iframe-after-orientation-change-actual.txt
@@ -2,7 +2,7 @@
 
 TEST COMPLETE
 PASS document.getElementById(&apos;frame&apos;).scrollWidth is outer.scrollWidth
-PASS document.getElementById(&apos;frame&apos;).contentDocument.getElementById(&apos;inner&apos;).scrollWidth is outer.scrollWidth
+FAIL document.getElementById(&apos;frame&apos;).contentDocument.getElementById(&apos;inner&apos;).scrollWidth should be 800. Was 320.
 Each time the viewport is resized, the outer div (green), iframe (orange) and inner div (pink) should take the full viewport width:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800813</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-05 15:44:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/83907851&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1800820</commentid>
    <comment_count>2</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-10-05 15:48:28 -0700</bug_when>
    <thetext>Marked test expectations https://trac.webkit.org/changeset/283582/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022976</commentid>
    <comment_count>3</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-03-21 19:17:55 -0700</bug_when>
    <thetext>Crash appears resolved as of 275423@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023017</commentid>
    <comment_count>4</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2024-03-21 20:55:22 -0700</bug_when>
    <thetext>Filed new bug for failure: bug #271445.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>