[webkit-qt] decidePolicyForNavigationAction QML API

Misha Tyutyunik michael.tyutyunik at nokia.com
Tue Feb 14 07:14:48 PST 2012


Hello,

I have a question related to this API.

In the QtWebPagePolicyClient::decidePolicyForNavigationAction() we drop 
NavigationType argument.
What is the reasoning behind this?

Thanks,

Misha


On 10/27/2011 11:15 AM, ext Caio Marcelo de Oliveira Filho wrote:
> Hello,
>
> On Mon, Oct 24, 2011 at 9:57 AM, Balazs Kelemen<kbalazs at webkit.org>  wrote:
>> It seems to me this assumption is not correct. The appropriate code part is
>> WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction. It sends a
>> synchronous message so we need to answer immediately on the UI side:
> Yes and no. :-)  These comments (and the sync code) were added in the
> patch for https://bugs.webkit.org/show_bug.cgi?id=53785. But the async
> API still works: WebPage still handles the async response, and
> WebPageProxy will still send the response message if the listener is
> called after returns. Note also the fact that the message returns a
> boolean and the action, the boolean indicates whether the reply is
> sync or async.
>
> I'm investigating more about the original issue, maybe we could find a
> way to fix the problem when using the async case, possibly even
> getting rid of the sync case.
>
>
> Cheers,
>



More information about the webkit-qt mailing list