<?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>131545</bug_id>
          
          <creation_ts>2014-04-11 10:31:21 -0700</creation_ts>
          <short_desc>[GTK] Layout Test media/media-event-listeners.html is failing</short_desc>
          <delta_ts>2021-07-02 03:52:30 -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>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          <dependson>83704</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>chavarria1991</cc>
    
    <cc>dpino</cc>
    
    <cc>lmoura</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>999922</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-11 10:31:21 -0700</bug_when>
    <thetext>The following layout test is failing on platform GTK since it was added on r164142 &lt;http://trac.webkit.org/r164142&gt;

media/media-event-listeners.html

The tests usually times out, but if you run it with a high enough timeout it gives the following failure:

--- /stuff/webkit/webkit/layout-test-results/media/media-event-listeners-expected.txt
+++ /stuff/webkit/webkit/layout-test-results/media/media-event-listeners-actual.txt
@@ -1,15 +1,2 @@
+FAIL: Timed out waiting for notifyDone to be called
 
-LISTENER(durationchange)
-LISTENER(loadedmetadata)
-LISTENER(loadeddata)
-LISTENER(canplay)
-LISTENER(canplaythrough)
-LISTENER(play)
-LISTENER(playing)
-LISTENER(ratechange)
-LISTENER(timeupdate)
-LISTENER(pause)
-LISTENER(ended)
-LISTENER(volumechange)
-END OF TEST
-


I will mark the test accordingly on the expectations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083276</commentid>
    <comment_count>1</comment_count>
    <who name="Marcos Chavarría Teijeiro (irc: chavaone)">chavarria1991</who>
    <bug_when>2015-04-07 02:47:11 -0700</bug_when>
    <thetext>This test is no longer timing out after r178418 (https://trac.webkit.org/changeset/178418). Now, it&apos;s failing. Updating expectations on bugs.webkit.org/show_bug.cgi?id=143467.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1083745</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-04-08 14:48:35 -0700</bug_when>
    <thetext>It occasionally passes fine, so I marked it as flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1690272</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-09-21 03:18:11 -0700</bug_when>
    <thetext>It seems this test was passing, although it was marked flaky. However, since r267162 the test is timing out. The failure happened in the following interval:

[r267156-r267159]             PASS (Expected: PASS FAIL)
[r267160-r267161]             UNKNOWN
r267162                       TIMEOUT (Expected: PASS FAIL)

I cannot determine the cause within the range [r267160-r267162].

The test result looks the same as the output described in https://bugs.webkit.org/show_bug.cgi?id=131545#c0

Diff: https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r267333%20(15940)/media/media-event-listeners-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/media-event-listeners-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/media-event-listeners-actual.txt
@@ -1,15 +1,2 @@
+FAIL: Timed out waiting for notifyDone to be called
 
-LISTENER(durationchange)
-LISTENER(loadedmetadata)
-LISTENER(loadeddata)
-LISTENER(canplay)
-LISTENER(canplaythrough)
-LISTENER(play)
-LISTENER(playing)
-LISTENER(ratechange)
-LISTENER(timeupdate)
-LISTENER(pause)
-LISTENER(ended)
-LISTENER(volumechange)
-END OF TEST
-

Update expectations accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1690428</commentid>
    <comment_count>4</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-09-21 12:22:55 -0700</bug_when>
    <thetext>It started in r267162, which changed WTR&apos;s TestController.cpp:

&gt; - WKPageSetMuted(m_mainWebView-&gt;page(), true);
&gt; + WKPageSetMediaVolume(m_mainWebView-&gt;page(), 0);

With this change, after setting the video source the player changes the volume from 1 to 0 before playing, which happens to cause the following &apos;video.volume = 0&apos; become a NOP and the volumechange event ends up not being triggered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691007</commentid>
    <comment_count>5</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-09-22 20:31:01 -0700</bug_when>
    <thetext>Ditto for media/video-volume.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774414</commentid>
    <comment_count>6</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2021-07-02 03:52:02 -0700</bug_when>
    <thetext>Fixed in r279499</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1774415</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-02 03:52:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/80076065&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>