[webkit-help] How to know if a request is an AJAX request

Karthik Tharavaad karthiktharavaad at gmail.com
Thu Jan 28 14:32:00 PST 2010


I am using the Qt port of webkit and I am trying to check if a request
is an AJAX request inside of the

FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction(FramePolicyFunction
function, const WebCore::NavigationAction& action, const
WebCore::ResourceRequest& request, PassRefPtr<WebCore::FormState>)

function, is there a way to check in this function whether the
ResourceRequest is asynchronous (ajax) or a normal one that will cause
a page refresh?
looking over the source code, it seems like that NavigationAction nor
ResourceRequest objects doesn't give me much clue.

Thanks for reading
Karthik


More information about the webkit-help mailing list