Re: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
Re: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
- Subject: Re: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
- From: Tito Ciuro <email@hidden>
- Date: Tue, 05 Jul 2011 17:57:22 -0700
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@hidden)
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:
This email sent to email@hidden