Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Xan Lopez
On Fri, Oct 23, 2009 at 5:37 PM, Jaroslav Gresula wrote: > Xan Lopez wrote: >> On Fri, Oct 23, 2009 at 5:05 PM, Jaroslav Gresula >> wrote: >>> Xan Lopez wrote: On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula wrote: > Hi, > > In my WebKit port (based on the GTK port) I wo

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
Xan Lopez wrote: > On Fri, Oct 23, 2009 at 5:05 PM, Jaroslav Gresula > wrote: >> Xan Lopez wrote: >>> On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula >>> wrote: Hi, In my WebKit port (based on the GTK port) I would like to cancel a resource request depending on the resource

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Xan Lopez
On Fri, Oct 23, 2009 at 5:05 PM, Jaroslav Gresula wrote: > Xan Lopez wrote: >> On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula >> wrote: >>> Hi, >>> >>> In my WebKit port (based on the GTK port) I would like to cancel a >>> resource request depending on the resource length or its MIME type. >>

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
Xan Lopez wrote: > On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula > wrote: >> Hi, >> >> In my WebKit port (based on the GTK port) I would like to cancel a >> resource request depending on the resource length or its MIME type. >> >> I thought, dispatchDidReceiveResponse(DocumentLoader*, ...) in

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Jaroslav Gresula
zaheer ahmad wrote: > hi, > ResourceLoader has a cancel api. so i think you can do the following > add addtl parameter to dispatchDidReceiveResponse to indicate if you should > cancel the resp > and do a loader->cancel() based on that. I don't like the idea of modifying FrameLoaderClient since it

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread Xan Lopez
On Thu, Oct 22, 2009 at 11:18 AM, Jaroslav Gresula wrote: > Hi, > > In my WebKit port (based on the GTK port) I would like to cancel a > resource request depending on the resource length or its MIME type. > > I thought, dispatchDidReceiveResponse(DocumentLoader*, ...) in my > WebCore::FrameLoaderC

[webkit-dev] Javascript and WebCore

2009-10-23 Thread Alexander Cohen
Hello, I've been looking into having WebCore support another scripting language other than Javascript. By going through the code, it seems pretty doable. Then i got to inline scripts on event handlers and that's where it became a bit more complicated. It seems like JSEventListeners are m

Re: [webkit-dev] How to cancel a resource request

2009-10-23 Thread zaheer ahmad
hi, ResourceLoader has a cancel api. so i think you can do the following add addtl parameter to dispatchDidReceiveResponse to indicate if you should cancel the resp and do a loader->cancel() based on that. Thanks, Zaheer On Thu, Oct 22, 2009 at 1:48 PM, Jaroslav Gresula < jgresula.leave-this-...@