<?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>170620</bug_id>
          
          <creation_ts>2017-04-07 14:53:14 -0700</creation_ts>
          <short_desc>REGRESSION: LayoutTest media/controls/pip-placeholder-without-video-controls.html is a flaky failure</short_desc>
          <delta_ts>2026-01-12 09:03:04 -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>Media</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1295496</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-07 14:53:14 -0700</bug_when>
    <thetext>LayoutTest media/controls/pip-placeholder-without-video-controls.html is a flaky failure

https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r215094%20(498)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=media%2Fcontrols%2Fpip-placeholder-without-video-controls.html

--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/media/controls/pip-placeholder-without-video-controls-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/media/controls/pip-placeholder-without-video-controls-actual.txt
@@ -10,7 +10,7 @@
 EVENT: webkitpresentationmodechanged
 PASS: Should be in pip mode
 PASS: Inline placeholder should be visible at this point
-PASS: Inline placeholder should have the &apos;picture-in-picture&apos; class
+FAIL: Inline placeholder should have the &apos;picture-in-picture&apos; class Expected to contain &quot;picture-in-picture&quot;. Actual: &quot;appletv&quot;
 
 Testing finished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1295497</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-04-07 14:53:39 -0700</bug_when>
    <thetext>This is limited to the Sierra Release WK2 bots according to flakiness dashboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1414533</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-04-13 16:38:40 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #1)
&gt; This is limited to the Sierra Release WK2 bots according to flakiness
&gt; dashboard.
It looks like the test is also flaky on High Sierra Release WK2, too (though it doesn&apos;t fail nearly as often as it does on Sierra).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1419427</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-05-01 14:35:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/39879021&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1420270</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-05-03 12:42:43 -0700</bug_when>
    <thetext>Marked test as flaky in https://trac.webkit.org/r231320</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426161</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-05-22 08:27:38 -0700</bug_when>
    <thetext>On Sierra, I get a reproducible failure with this command:

run-webkit-tests --release media/controls/airplay-picker.html media/controls/pip-placeholder-without-video-controls.html --force</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426165</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-05-22 08:45:58 -0700</bug_when>
    <thetext>The diff definitely points at the media being in AirPlay mode since it has an &quot;appletv&quot; class. So it&apos;s a matter of a previous test making this test run in AirPlay still.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426223</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-05-22 11:56:17 -0700</bug_when>
    <thetext>Even after setMockMediaPlaybackTargetPickerState(emptyString(), MediaPlaybackTargetContext::Unknown) has been called by Internals::resetToConsistentState() and WebMediaSessionManager::setMockMediaPlaybackTargetPickerState() has received the message from the UI process, which means the state has been reset as expected, the failing test will receive a &quot;webkitcurrentplaybacktargetiswirelesschanged&quot; event and video.webkitCurrentPlaybackTargetIsWireless will be set to true. As such the test thinks it&apos;s Airplaying and showing the wrong message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426238</commentid>
    <comment_count>8</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-05-22 12:24:47 -0700</bug_when>
    <thetext>Even when the test passes, div[pseudo=&apos;-webkit-media-controls-wireless-playback-status&apos;].className is &quot;picture-in-picture appletv&quot;, which makes no sense to me. It should be one or the other…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426244</commentid>
    <comment_count>9</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-05-22 12:36:11 -0700</bug_when>
    <thetext>The crux of the problem is that HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged() is called with the media in the wrong state and this causes the test to act as it&apos;s AirPlaying.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>