<?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>112598</bug_id>
          
          <creation_ts>2013-03-18 11:07:14 -0700</creation_ts>
          <short_desc>[chromium] http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html is flaky because of console output</short_desc>
          <delta_ts>2013-04-08 16:54:00 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Kenneth Russell">kbr</reporter>
          <assigned_to name="Mike West">mkwst</assigned_to>
          <cc>abarth</cc>
    
    <cc>japhet</cc>
    
    <cc>mkwst</cc>
    
    <cc>schenney</cc>
    
    <cc>tsepez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>857326</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2013-03-18 11:07:14 -0700</bug_when>
    <thetext>The test http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html is flaky on all platforms because occasionally the console output attributes the error message to a line number. See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&amp;showExpectations=true&amp;tests=http%2Ftests%2Fsecurity%2FmixedContent%2Finsecure-audio-video-in-main-frame.html .

Marking this test as flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859288</commentid>
    <comment_count>1</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2013-03-20 05:57:19 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; The test http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html is flaky on all platforms because occasionally the console output attributes the error message to a line number. See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&amp;showExpectations=true&amp;tests=http%2Ftests%2Fsecurity%2FmixedContent%2Finsecure-audio-video-in-main-frame.html .
&gt; 
&gt; Marking this test as flaky.

For some reason, &quot;document-&gt;parsing()&quot; is periodically returning true when the onload event is triggered. This causes PageConsole::addMessage to check whether the scriptableDocumentParser isWaitingForScripts or isExecutingScripts. Neither is true, so we grab the line number, believing it to be a message tied to something in parsing.

I&apos;ll dig a bit deeper.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859330</commentid>
    <comment_count>2</comment_count>
    <who name="Mike West">mkwst</who>
    <bug_when>2013-03-20 06:25:03 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; The test http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html is flaky on all platforms because occasionally the console output attributes the error message to a line number. See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&amp;showExpectations=true&amp;tests=http%2Ftests%2Fsecurity%2FmixedContent%2Finsecure-audio-video-in-main-frame.html .
&gt; &gt; 
&gt; &gt; Marking this test as flaky.
&gt; 
&gt; For some reason, &quot;document-&gt;parsing()&quot; is periodically returning true when the onload event is triggered. This causes PageConsole::addMessage to check whether the scriptableDocumentParser isWaitingForScripts or isExecutingScripts. Neither is true, so we grab the line number, believing it to be a message tied to something in parsing.
&gt; 
&gt; I&apos;ll dig a bit deeper.

I think this is happening because we defer loading of media sources via &apos;HTMLMediaElement::scheduleDelayedAction(LoadMediaResource)&apos;. This means that the mixed content and CSP checks (among others) will happen at some indeterminate point; perhaps before the onload event, perhaps after.

This is different from what we do for images, for instance: those checks happen synchronously (via ImageLoader::updateFromElement()), which makes it possible to pull a line number directly from the parser.

I&apos;ll have to think a bit about how to address this. Nothing brilliant is coming to mind. :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>859527</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2013-03-20 10:15:28 -0700</bug_when>
    <thetext>Thanks for investigating. Maybe it&apos;s necessary to live with the flakiness. Your call. Assigning to you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>