Hello again,
Partially solved:
- (void)webView:(WebView *)sender
didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame
{
NSLog(@"didReceiveServerRedirectForProvisionalLoadForFrame detected: %@",
sender);
NSLog(@"%@",[[[[frame provisionalDataSource]request]URL]absoluteString]);
}
I can now obtain the redirected URL, but I'm still wondering why
willPerformClientRedirectToURL is not being called...
-- Tito
On Jul 5, 2011, at 5:42 PM, Tito Ciuro wrote:
> Hello,
>
> I have a question regarding WebKit. The redirect sent by the server works
> fine (gets displayed properly) but the following method is never invoked:
>
> - (void)webView:(WebView *)sender willPerformClientRedirectToURL:(NSURL *)URL
> delay:(NSTimeInterval)seconds fireDate:(NSDate *)date forFrame:(WebFrame
> *)frame
>
> Instead, the following two methods get invoked:
>
> - (void)webView:(WebView *)sender
> didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame
> - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
>
> I would like to log the URL being redirected to, but
> willPerformClientRedirectToURL is never called. Any idea why?
>
> Thanks,
>
> -- Tito
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]