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.

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.


Regards

Lukasz Slachciak
_______________________________________________
webkit-gtk mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk

Reply via email to