<?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>169324</bug_id>
          
          <creation_ts>2017-03-07 17:26:57 -0800</creation_ts>
          <short_desc>LayoutTest media/track/media-element-enqueue-event-crash.html is a flaky failure</short_desc>
          <delta_ts>2026-01-12 09:06:08 -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>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></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>ap</cc>
    
    <cc>graouts</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1284660</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-03-07 17:26:57 -0800</bug_when>
    <thetext>LayoutTest media/track/media-element-enqueue-event-crash.html is a flaky failure

https://build.webkit.org/results/Apple%20El%20Capitan%20Release%20WK1%20(Tests)/r213540%20(14371)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=media%2Ftrack%2Fmedia-element-enqueue-event-crash.html

--- /Volumes/Data/slave/elcapitan-release-tests-wk1/build/layout-test-results/media/track/media-element-enqueue-event-crash-expected.txt
+++ /Volumes/Data/slave/elcapitan-release-tests-wk1/build/layout-test-results/media/track/media-element-enqueue-event-crash-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 2081: IconButton failed to load, iconName = pause, layoutTraits = 9, src = data:image/png;base64,
 Tests that appending events for dispatching doesn&apos;t crash
 
 ** No crash. Pass **</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284661</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-03-07 17:27:30 -0800</bug_when>
    <thetext>This logging was added with http://trac.webkit.org/changeset/213540</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284788</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2017-03-07 23:59:08 -0800</bug_when>
    <thetext>This indicates that we failed to load an icon from the WebCore.framework.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284852</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2017-03-08 06:28:06 -0800</bug_when>
    <thetext>So I&apos;ve managed to reproduce the icon load issue here and as far as I can tell the icon loading fails because we can&apos;t get a Page reference here:

String MediaControlsHost::base64StringForIconAndPlatform(const String&amp; iconName, const String&amp; platform) const
{
    Page* page = m_mediaElement-&gt;document().page();
    if (!page) {
        return emptyString();
    return RenderTheme::themeForPage(page)-&gt;mediaControlsBase64StringForIconAndPlatform(iconName, platform);
}

So we don&apos;t event attempt to load the icon and return an empty string. I have no idea why the Page may not be available at this stage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284853</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2017-03-08 06:32:38 -0800</bug_when>
    <thetext>OK, in the case of this test, I think this is expected… The test removes the media element from the original page&apos;s document after 100ms, so I think it&apos;s completely legitimate that we may not have a Page when this gets called, for instance as a result of a &quot;play&quot; event being dispatched which attempts to load the pause icon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1284888</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-03-08 10:10:19 -0800</bug_when>
    <thetext>Marked test as flaky in http://trac.webkit.org/projects/webkit/changeset/213580 to get the bots back to green. We&apos;ll need to remove this expectation once the logging is removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>