<?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>224633</bug_id>
          
          <creation_ts>2021-04-15 17:02:20 -0700</creation_ts>
          <short_desc>[ wk2 ] media/presentationmodechanged-fired-once.html is a flakey timeout</short_desc>
          <delta_ts>2021-04-16 13:55:35 -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>NEW</bug_status>
          <resolution></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="Nobody">webkit-unassigned</assigned_to>
          <cc>peng.liu6</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>1750852</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-04-15 17:02:20 -0700</bug_when>
    <thetext>media/presentationmodechanged-fired-once.html 

is a flakey timeout on wk2 in iOS 14 Simulator, Catalina, and BigSur. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=media%2Fpresentationmodechanged-fired-once.html

History indicates the first timeout occurred at r274822.

TIMEOUT TEXT:
-This tests that the &quot;webkitpresentationmodechanged&quot; event is fired only once when the browser switches back to inline from the picture-in-picture mode.
+#PID UNRESPONSIVE - WebKitTestRunner (pid 78919)
+FAIL: Timed out waiting for notifyDone to be called
 
-RUN(video.src = findMediaFile(&quot;video&quot;, &quot;content/test&quot;))
-EVENT(canplaythrough)
-RUN(video.play())
-RUN(video.webkitSetPresentationMode(&quot;picture-in-picture&quot;))
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == &apos;false&apos;) OK
-EXPECTED (video.webkitPresentationMode == &apos;picture-in-picture&apos;) OK
-RUN(video.webkitSetPresentationMode(&quot;inline&quot;))
-EVENT(webkitpresentationmodechanged)
-EXPECTED (video.webkitPresentationMode == &apos;inline&apos;) OK
-END OF TEST
-
+#EOF
+#EOF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751188</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-16 12:24:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/76772791&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751196</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-04-16 12:39:19 -0700</bug_when>
    <thetext>The timeouts are not easy to reproduce, but I have been able to reproduce it at BigSur Debug ToT using the following:

run-webkit-tests --iterations 2000 --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --debug-rwt-logging --no-retry --force --no-build -f --debug media/presentationmodechanged-fired-once.html

The timeout does not reproduce every time the above test is run. But it&apos;s the only way I&apos;ve had any success at all with reproducing the timeout. I will attempt to discover a regression point, but given the flakiness of this test, I might not be able to. But we will see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751215</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-04-16 13:35:48 -0700</bug_when>
    <thetext>Updated test expectation to Pass Timeout here while test is reviewed:

https://trac.webkit.org/changeset/276163/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751219</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-04-16 13:39:00 -0700</bug_when>
    <thetext>I have not been able to reliably reproduce the timeouts. For this reason, I cannot discover a regression point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751228</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-04-16 13:55:35 -0700</bug_when>
    <thetext>Updated expectations for iOS here as well:
https://trac.webkit.org/changeset/276165/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>