If I initiate a NSURLConnection in a webView willSendRequest, it will
fail the webView load.
-(NSURLRequest *)webView:(WebView *)sender resource:(id)identifier
willSendRequest:(NSURLRequest *)request redirectResponse:
(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource
*)dataSource
{
// Update the status message
@try
{
if (redirectResponse)
{
NSMutableURLRequest *mrequest = [request mutableCopy];
if (mrequest)
{
[mrequest retain];
// create a new connection using NSURLConnection
myConnection = [[NSURLConnection alloc] initWithRequest:mrequest
delegate:self];
}
}
}
.
.
}
2008-10-13 22:55:48.523 MyApp[1653:813] WebView Error
didFailProvisionalLoadWithError: Error Domain=NSURLErrorDomain
Code=-999 UserInfo=0x162bc8f0 "Operation could not be completed.
(NSURLErrorDomain error -999.)"
Does anyone know why this is happening?
Thanks,
Bill Patterson
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev