• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
  • Next by Date: Re: finder eject images
  • Previous by thread: Method willPerformClientRedirectToURL: delay: fireDate: forFrame: not being called
  • Next by thread: iOS: AVFoundation, AVAssetWriter and caching
  • Index(es):
    • Date
    • Thread