<?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>176174</bug_id>
          
          <creation_ts>2017-08-31 11:50:10 -0700</creation_ts>
          <short_desc>[GTK][WPE] Test media/event-queue-crash is flaky (race condition on load events) after r220052</short_desc>
          <delta_ts>2020-06-19 00:34:07 -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>WebKitGTK</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=130653</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>darin</cc>
    
    <cc>dpino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1344045</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-08-31 11:50:10 -0700</bug_when>
    <thetext>r220052 &lt;https://trac.webkit.org/r220052&gt; implemented some improvements regarding style resolution and layout, and (quoting the changelog) &quot;Also fixes a bug where load events are delivered prematurely in some cases  when an object, embed, frame, or iframe element is still loading.&quot;

As a result of this, the expectation for the test media/event-queue-crash was changed to log a syntax error that before was not triggering:

--- a/LayoutTests/media/event-queue-crash-expected.txt
+++ b/LayoutTests/media/event-queue-crash-expected.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 34: SyntaxError: Unexpected token &apos;}&apos;. Expected &apos;(&apos; to start an &apos;if&apos; condition.
 When an element containing video is removed, WebKit should not crash.
 
 PASS. WebKit didn&apos;t crash.


On the GTK+/WPE ports this test is now flaky and gives different results depending on the bot:

1) On the GTK+ release test, this test is passing fine.
2) On the GTK+ wayland bot this test is giving the failure below (like the fix on r220052 didn&apos;t worked here) https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20Wayland%20(Tests)/r220052%20(2288)/media/event-queue-crash-pretty-diff.html
3) On the WPE release test bot, this test is skipped (general skip of media/ tests), but running it manually happens the same than on GTK+ wayland.

4) On my laptop with GTK+ release, this test is either giving the same result than on GTK+ wayland, passing or crashing.

So my conclusion is that there is still some race condition with this test that affects the GTK+/WPE ports</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344053</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-08-31 12:03:41 -0700</bug_when>
    <thetext>History from the flakiness dashboard : https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#tests=media%2Fevent-queue-crash.html

I&apos;m marking it as flaky for the text diff (it will still check that no crashes but won&apos;t complain about the text diff due to the race condition in load events)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344054</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-08-31 12:05:27 -0700</bug_when>
    <thetext>Committed r221432: &lt;http://trac.webkit.org/changeset/221432&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664233</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-06-19 00:34:07 -0700</bug_when>
    <thetext>The test(s) filed under this bug have been consistently passing for the last 4000 revisions. Marking bug as fixed.

Committed r263254: &lt;https://trac.webkit.org/changeset/263254&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>