<?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>206959</bug_id>
          
          <creation_ts>2020-01-29 13:15:31 -0800</creation_ts>
          <short_desc>[ macOS wk2 ] http/tests/media/media-stream/get-display-media-prompt.html is flaky timing out</short_desc>
          <delta_ts>2020-01-30 15:24:34 -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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>206958</dup_id>
          
          <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="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <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>1612625</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-01-29 13:15:31 -0800</bug_when>
    <thetext>http/tests/media/media-stream/get-display-media-prompt.html 

this test is a flaky failure on MacOS 

test is also flaky timing out 

I was able to reproduce the failure by running the test in iterations

Timeouts are seen throughout all visible history

History:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fmedia%2Fmedia-stream%2Fget-display-media-prompt.html

Diff:

--- /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/http/tests/media/media-stream/get-display-media-prompt-expected.txt
+++ /Volumes/Data/slave/catalina-release-tests-wk2/build/layout-test-results/http/tests/media/media-stream/get-display-media-prompt-actual.txt
@@ -1,55 +1,6 @@
-Test basic getDisplayMedia prompting behavior
+CONSOLE MESSAGE: line 123: Unhandled Promise Rejection: InvalidAccessError: getDisplayMedia must be called from a user gesture handler.
+#PID UNRESPONSIVE - WebKitTestRunner (pid 94078)
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 0
-
-** Request an audio-only stream, the user should not be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 0
-PASS stream is undefined.
-PASS err instanceof Error  is true
-PASS err.name is &quot;TypeError&quot;
-
-** Request an video-only stream, the user should be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 1
-PASS stream.getAudioTracks().length is 0
-PASS stream.getVideoTracks().length is 1
-
-** Request a stream with audio and video, the user should be prompted but no audio track should be created **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 2
-PASS stream.getAudioTracks().length is 0
-PASS stream.getVideoTracks().length is 1
-
-** Request a stream with &apos;max&apos; constraints, the user should not be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 2
-PASS stream is undefined.
-PASS err instanceof Error  is true
-PASS err.name is &quot;TypeError&quot;
-
-** Request a stream with &apos;min&apos; constraints, the user should not be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 2
-PASS stream is undefined.
-PASS err instanceof Error  is true
-PASS err.name is &quot;TypeError&quot;
-
-** Request a stream with &apos;advanced&apos; constraints, the user should not be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 2
-PASS stream is undefined.
-PASS err instanceof Error  is true
-PASS err.name is &quot;TypeError&quot;
-
-** Request a stream with valid constraints, the user should be prompted **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 3
-PASS stream.getAudioTracks().length is 0
-PASS stream.getVideoTracks().length is 1
-
-** Request a stream with an exact audio constraint, it should be ignored **
-PASS numberOfTimesGetUserMediaPromptHasBeenCalled() is 4
-PASS stream.getAudioTracks().length is 0
-PASS stream.getVideoTracks().length is 1
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
+#EOF
+#EOF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612636</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-29 13:29:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/59004286&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613167</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-30 15:18:18 -0800</bug_when>
    <thetext>No failures before 2019-11-05. First failure was with r252047, which was a media related change, but failures were not frequent enough to positively blame.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1613170</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-30 15:24:34 -0800</bug_when>
    <thetext>Let&apos;s track failures and timeouts together, because they started at the same time.

*** This bug has been marked as a duplicate of bug 206958 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>