[webkit-dev] Error when calling a WebDataSource's "subresources" method

Timothy Hatcher timothy at hatcher.name
Sat Dec 15 10:51:27 PST 2007


This bug is fixed in TOT WebKit. You do not need to file a new bug  
report.

On Dec 15, 2007, at 8:29 AM, John Sullivan wrote:

> It's a bug; the API shouldn't be throwing exceptions. Please file a  
> bug at http://bugs.webkit.org.
>
> John
>
> On Dec 15, 2007, at 2:03 AM, Martin wrote:
>
>> When I call the following method:
>>
>> [dataSource subresources]
>>
>> from inside the following method:
>>
>> - (id)webView:(WebView *)sender identifierForInitialRequest: 
>> (NSURLRequest *)request fromDataSource:(WebDataSource *)dataSource
>>
>> of my WebResourceLoadDelegate, I get the following error (the error  
>> occurs for 98 out of 105 calls to the previous method for a  
>> specific webpage):
>>
>> *** WebKit discarded an uncaught exception in the  
>> webView:identifierForInitialRequest:fromDataSource: delegate:  
>> <NSInvalidArgumentException> *** -[NSCFArray  
>> insertObject:atIndex:]: attempt to insert nil
>>
>> Is this normal because I'm not supposed to ask for the subresources  
>> until everything is loaded? Or is it a bug?

— Timothy Hatcher


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20071215/4edd572d/attachment-0001.html


More information about the webkit-dev mailing list