[webkit-gtk] WebKit2, WebProcess and platformPageClient

Carlos Garcia Campos cgarcia at igalia.com
Wed Jul 27 06:33:14 PDT 2011

El Tue, 26 Jul 2011 21:12:16 +0200
Łukasz Ślachciak <lukasz.slachciak at gmail.com> escribió:
> Hello All.


> Recently I was investigating how clipboard works in WebKit2 GTK.
> In fact it doesn't work ;-)
> Copying text to clipboard works (because
> gtk_clipboard_get_for_display is called) but pasting causes just
> GTk-critical errors (because helper->getCurrentClipboard(frame) is
> called).
> The problem is that we are missing in WebKit2 
> WebChromeClient::platformPageClient() implementation.

Yes, because there's no view widget in the web process. 

> it is called by widgetFromFrame() method.
> I'm thinking how to resolve this problem.
> Should we implement something like:
> PlatformPageClient WebChromeClient::platformPageClient() const
> {
>      return GTK_WIDGET(webView());
> }
> But this is WebProcess and webView() returns 0 here.
> Should we try to return widget at UIProcess site?
> Any ideas?


> I see that platformPageClient() is called many times so this is not 
> clipboard problem only.

Please, file bug reports for other uses of platformPageclient() in the
web process. 

> Regards
> Lukasz Slachciak

Thanks for reporting, 
Carlos Garcia Campos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20110727/4704a26a/attachment.bin>

More information about the webkit-gtk mailing list