[webkit-dev] Cancel a URL request from a webview

Brady Eidson beidson at apple.com
Sat Oct 11 11:04:34 PDT 2008


It should work in either case.

You say it causes a crash in your original test case...  could you  
file a bug at bugs.webkit.org with more information, including the  
back trace of the crash?

~Brady

On Oct 10, 2008, at 8:59 PM, Bill Patterson wrote:

> Maybe it would work if it was a non-redirected request?
>
> Bill
>
> On Oct 10, 2008, at 4:26 PM, Darin Adler wrote:
>
>> On Oct 9, 2008, at 11:47 PM, Bill Patterson wrote:
>>
>>> I need a means to cancel a URL request from a webview, preferably
>>> in the
>>> webView:resource:willSendRequest:redirectResponse:fromDataSource:
>>> delegate.
>>
>> If you return nil, WebKit will cancel the request.
>>
>>> I need to do this because I need access to the NSURLConnection
>>> delegates to handle a redirected URL, which doesn't seem possible
>>> in the webview delegate.
>>
>> Are you sure? Which delegates specifically? Have you looked at the
>> WebKit source code to see how it handles this NSURLConnection
>> delegate?
>>
>> If this isn't possible, I suspect it's a bug.
>>
>>   -- Darin
>>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list