[webkit-dev] didFailProvisionalLoadWithError with -999 after NSURLConnection initiated during webView willSendRequest

Bill Patterson billpatt at aol.com
Mon Oct 13 21:01:55 PDT 2008

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  
     // Update the status message

            if (redirectResponse)
                NSMutableURLRequest *mrequest = [request mutableCopy];
                if (mrequest)
                    [mrequest retain];
                    // create a new connection using NSURLConnection
                    myConnection = [[NSURLConnection alloc] initWithRequest:mrequest  

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?


Bill Patterson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20081013/d8c3e95d/attachment.html 

More information about the webkit-dev mailing list