<?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>125586</bug_id>
          
          <creation_ts>2013-12-11 11:02:58 -0800</creation_ts>
          <short_desc>[GTK] /webkit2/WebKitWebPage/get-uri fails if run alone</short_desc>
          <delta_ts>2013-12-22 02:19:04 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          <blocked>108832</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>958803</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-11 11:02:58 -0800</bug_when>
    <thetext>$ Programs/WebKit2APITests/TestLoaderClient -p /webkit2/WebKitWebPage/get-uri
ERROR:../../usr/local/devel/WebKit/Source/WebKit2/UIProcess/API/gtk/tests/TestLoaderClient.cpp:344:void testWebPageURI(WebPageURITest*, gconstpointer): assertion failed (test-&gt;m_webPageURIs.size() == test-&gt;m_webViewURIs.size()): (0 == 2)

m_webPageURIs is enlarged in the WebKitWebExtension::page-created
callback. The problem is that this signal is emitted before its
handler is registered in busAcquiredCallback().

This doesn&apos;t happen in a normal execution because there&apos;s time for the
bus to be acquired before this particular test (which is almost the
last one) is run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>960497</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-12-17 07:19:55 -0800</bug_when>
    <thetext>This fails all the time if TestLoaderClient is run with the
network process enabled.

The reason for this is that after each test the web process is
terminated:

void WebProcessProxy::removeWebPage(uint64_t pageID)
{
    [...]

    // If this was the last WebPage open in that web process, and we have no other reason to keep it alive, let it go.
    // We only allow this when using a network process, as otherwise the WebProcess needs to preserve its session state.
    if (m_context-&gt;usesNetworkProcess() &amp;&amp; canTerminateChildProcess()) {
        abortProcessLaunchIfNeeded();
        disconnect();
    }
}

Because of this there&apos;s a new web process for each test and the bug is
hit all the time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>962303</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2013-12-22 02:19:04 -0800</bug_when>
    <thetext>This has already been fixed in r160904.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>