<?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>237448</bug_id>
          
          <creation_ts>2022-03-03 15:23:10 -0800</creation_ts>
          <short_desc>REGRESSION(r290752) [ iPad ] 10X picture-in-picture (layout-tests) are constant text failures and timeouts.</short_desc>
          <delta_ts>2022-03-03 15:48:29 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=237227</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="Robert Jenner">jenner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pvollan</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>1848077</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-03-03 15:23:10 -0800</bug_when>
    <thetext>The following 10 picture-in-picture layout-tests are constant text failures or timeouts on iPad:

FAILURES: 
media/picture-in-picture/picture-in-picture-api-enter-pip-1.html
media/picture-in-picture/picture-in-picture-api-enter-pip-2.html
media/picture-in-picture/picture-in-picture-api-enter-pip-3.html
media/picture-in-picture/picture-in-picture-api-enter-pip-4.html
media/picture-in-picture/picture-in-picture-api-pip-window.html
media/picture-in-picture/picture-in-picture-window-aspect-ratio.html
platform/ipad/media/modern-media-controls/pip-support/pip-support-enabled.html

TIMEOUTS: 
media/picture-in-picture/picture-in-picture-api-exit-pip-1.html
media/picture-in-picture/picture-in-picture-api-events.html
media/picture-in-picture/picture-in-picture-api-css-selector.html

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-css-selector.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-enter-pip-1.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-enter-pip-2.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-enter-pip-3.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-enter-pip-4.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-events.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-exit-pip-1.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-api-pip-window.html&amp;test=media%2Fpicture-in-picture%2Fpicture-in-picture-window-aspect-ratio.html&amp;test=platform%2Fipad%2Fmedia%2Fmodern-media-controls%2Fpip-support%2Fpip-support-enabled.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848080</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-03-03 15:27:21 -0800</bug_when>
    <thetext>media/picture-in-picture/picture-in-picture-api-enter-pip-1.html
media/picture-in-picture/picture-in-picture-api-enter-pip-2.html
media/picture-in-picture/picture-in-picture-api-enter-pip-3.html

All have this DIFF:
 RUN(internals.setMockVideoPresentationModeEnabled(true))
 RUN(video.src = findMediaFile(&quot;video&quot;, &quot;../content/test&quot;))
 EVENT(canplaythrough)
-EXPECTED (error.name == &apos;NotAllowedError&apos;) OK
+EXPECTED (error.name == &apos;NotAllowedError&apos;), OBSERVED &apos;NotSupportedError&apos; FAIL
 END OF TEST



media/picture-in-picture/picture-in-picture-api-enter-pip-4.html
media/picture-in-picture/picture-in-picture-api-pip-window.html
media/picture-in-picture/picture-in-picture-window-aspect-ratio.html

All have this DIFF:
 RUN(internals.setMockVideoPresentationModeEnabled(true))
 RUN(video.src = findMediaFile(&quot;video&quot;, &quot;../content/test&quot;))
 EVENT(canplaythrough)
+request Picture-in-Picture does not resolve on user click. FAIL
 END OF TEST

and platform/ipad/media/modern-media-controls/pip-support/pip-support-enabled.html

has this DIFF:
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
 
 
-PASS mediaController.controls.pipButton.enabled is true
+FAIL mediaController.controls.pipButton.enabled should be true. Was false.
 PASS mediaController.controls.pipButton.enabled is false
 
 PASS successfullyParsed is true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848084</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-03-03 15:32:43 -0800</bug_when>
    <thetext>You can also see that these are marked as pre-existing failures on EWS, and is significantly slowing down that queue:

https://ews-build.webkit.org/#/builders/68

I was also able to reproduce all of these failures/timeouts at iOS15/iPadOS 15 Production ToT using the following test:

run-webkit-tests --ipad-simulator &lt;test goes here&gt; 

I was able to also reproduce them back to r290752, and not at r290751. Also, changes at r290752 do directly deal with picture and picture controller. So r290752 is our regression point here.

https://github.com/WebKit/WebKit/commit/b0927c0e0ea0c517a9b07f0e6bc8729eb7af0781</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848086</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-03 15:32:52 -0800</bug_when>
    <thetext>&lt;rdar://problem/89781215&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848095</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2022-03-03 15:48:18 -0800</bug_when>
    <thetext>Resolved by reverting here:

https://trac.webkit.org/changeset/290798/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>