[Webkit-unassigned] [Bug 112418] [GTK][WK2] Load get stuck in webkit_web_view_go_back()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 15 05:03:53 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=112418





--- Comment #1 from Manuel Rego Casasnovas <rego at igalia.com>  2013-03-15 05:06:19 PST ---
(In reply to comment #0)
> I'm only able to reproduce it in the tests using a custom scheme URI, for example the following diff will get stuck, as the load after webkit_web_view_go_back() never finishes:
> diff --git a/Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitWebContext.cpp b/Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitWebContext.cpp
> index 185c06c..9793f68 100644
> --- a/Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitWebContext.cpp
> +++ b/Source/WebKit2/UIProcess/API/gtk/tests/TestWebKitWebContext.cpp
> @@ -179,6 +179,14 @@ static void testWebContextURIScheme(URISchemeTest* test, gconstpointer)
>      test->registerURISchemeHandler("foo", kBarHTML, strlen(kBarHTML), "text/html");
>      test->loadURI("foo:blank");
>      test->waitUntilLoadFinished();
> +    test->loadURI("foo:other");
> +    test->waitUntilLoadFinished();
> +    test->loadURI("foo:blank");
> +    test->waitUntilLoadFinished();
> +    test->loadURI("foo:other");
> +    test->waitUntilLoadFinished();
> +    webkit_web_view_go_back(test->m_webView);
> +    test->waitUntilLoadFinished();
>      size_t mainResourceDataSize = 0;
>      const char* mainResourceData = test->mainResourceData(mainResourceDataSize);
>      g_assert_cmpint(mainResourceDataSize, ==, strlen(kBarHTML));

BTW, you'll have to comment out the g_assert_cmpstr() in LoadTrackingTest::loadChangedCallback() otherwise the test will fail before it gets stuck.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list