[Webkit-unassigned] [Bug 68085] [GTK] Loader client implementation for WebKit2 GTK+ API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 28 00:41:17 PDT 2011


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





--- Comment #22 from Martin Robinson <mrobinson at webkit.org>  2011-09-28 00:41:17 PST ---
(From update of attachment 108456)
View in context: https://bugs.webkit.org/attachment.cgi?id=108456&action=review

This looks good to me. I do not think we should add any sort of convenience API until we definitely understand how all these callbacks fit together. For example does a failure during provisional load also call didFailLoadWithErrorForFrame as well as didStartProvisionalLoadForFrame? Carlos, do you mind taking a peak at the loader  code in WebCore and writing the answer to that question somewhere in the gtkdoc?

> Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:59
> +static void didStartProvisionalLoadForFrame(WKPageRef page, WKFrameRef frame, WKTypeRef userData, const void* clientInfo)

userData is unused, so the parameter name should be commented out.

> Source/WebKit2/UIProcess/API/gtk/WebKitWebLoaderClient.cpp:66
> +    WebKitWebLoaderClient* client = WEBKIT_WEB_LOADER_CLIENT(clientInfo);
> +    gboolean returnValue;
> +    g_signal_emit(client, signals[PROVISIONAL_LOAD_STARTED], 0, &returnValue);

g_signal_emit takes a gpointer. Is it really necessary to cast clientInfo here?

-- 
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