Routes a navigation action internally or to an external viewer.
- macOS 10.2–10.14Deprecated
Webobject for which this object is the policy delegate.
A description of the action that triggered the navigation request. The possible key-value pairs in this dictionary are defined in Action Dictionary Keys.
The request for which the navigation is made.
Webobject in which the action occurred.
Webobject that receives the policy decision.
Policy Decision Listener
This method is invoked when a navigation decision needs to be made. The web view implements a policy decision by sending one of the
Web protocol messages to
listener. This method is invoked whenever a server redirect is encountered, and before loading starts.
If you do not implement this method, the default behavior is used. The listener handles the navigation internally if the request is for an error page or if the
can method of the
NSURLConnection class returns
YES when passed
request. Otherwise, the listener ignores the navigation, and it is handled externally.