<?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>194259</bug_id>
          
          <creation_ts>2019-02-04 17:09:52 -0800</creation_ts>
          <short_desc>rotationDidEndCallback not triggered on iPad during testing</short_desc>
          <delta_ts>2024-03-22 02:32:34 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193767</see_also>
          <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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a_protyasha</cc>
    
    <cc>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1502132</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-02-04 17:09:52 -0800</bug_when>
    <thetext>This causes the following tests to fail:
    fast/events/ios/rotation/basic-rotation.html [ Skip ]
    fast/events/ios/rotation/layout-viewport-during-rotation.html [ Skip ]
    fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html [ Skip ]
    fast/events/ios/rotation/resize-iframe-after-orientation-change.html [ Skip ]
    fast/events/ios/rotation/safari-like-rotation.html [ Skip ]

In particular, the callback in this function never gets triggered during iPad testing:

void UIScriptController::simulateRotation(DeviceOrientation* orientation, JSValueRef callback)
{
    TestRunnerWKWebView *webView = TestController::singleton().mainWebView()-&gt;platformView();
    webView.usesSafariLikeRotation = NO;
    
    unsigned callbackID = m_context-&gt;prepareForAsyncTask(callback, CallbackTypeNonPersistent);
    
    webView.rotationDidEndCallback = ^{
        if (!m_context)
            return;
        m_context-&gt;asyncTaskComplete(callbackID);
    };
    
    [[UIDevice currentDevice] setOrientation:toUIDeviceOrientation(orientation) animated:YES];
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023068</commentid>
    <comment_count>1</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2024-03-22 02:32:34 -0700</bug_when>
    <thetext>This seems to no longer be the case. We should add iPad-specific baselines and unskip the tests now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>