<?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>101195</bug_id>
          
          <creation_ts>2012-11-05 02:11:35 -0800</creation_ts>
          <short_desc>Web Inspector: Flakyness in http/tests/inspector/network/network-initiator-from-console.html</short_desc>
          <delta_ts>2012-11-06 06:09:07 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Raphael Kubo da Costa (:rakuco)">rakuco</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>vsevik</cc>
    
    <cc>web-inspector-bugs</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>758349</commentid>
    <comment_count>0</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-11-05 02:11:35 -0800</bug_when>
    <thetext>This is mostly about the EFL-WK2 port; the test is already skipped by a few ports, but there are no related bug reports in their TestExpectations files so I don&apos;t know if they have the same issue.

Every once in a while, http/tests/inspector/network/network-initiator-from-console.html fails on the bot (it&apos;s easier for me to reproduce it locally) because the console message indicating script.js has been loaded is not printed:

--- /tmp/wk-ltr-tmp/http/tests/inspector/network/network-initiator-from-console-expected.txt
+++ /tmp/wk-ltr-tmp/http/tests/inspector/network/network-initiator-from-console-actual.txt
@@ -1,4 +1,3 @@
-CONSOLE MESSAGE: line 1: Done.
 Tests that there is no javascript error when console evaluation causes resource loading.
 
 Bug 65466

After some debugging, it looks like InspectorTest.completeTest() is called before the request to script.js is fully processed, so the call to console.log(&quot;Done.&quot;) is made after InspectorTest.completeTest() has already teared everything down.

It happens much more often if Xvfb is used to run WebKitTestRunner: when the running X session is used instead, everything goes as expected and the call to WebInspector.panel(&quot;network&quot;).show() seems to &quot;block&quot; until script.js is fully processed. Speaking of that, using setTimeout(InspectorTest.completeTest, 0) instead of a direct call to that function seems to solve the problem with Xvfb.

I&apos;m not very familiar with the inspector area of WebKit, but I&apos;d be more than glad to help with this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>759587</commentid>
    <comment_count>1</comment_count>
    <who name="Vsevolod Vlasov">vsevik</who>
    <bug_when>2012-11-06 06:09:07 -0800</bug_when>
    <thetext>Committed r133595: &lt;http://trac.webkit.org/changeset/133595&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>