Decides whether to allow a targeted navigation event, such as opening a link in a new window.
- 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 Making content decisions.
The request for which the new window action is performed.
The name of the new frame that contains the content returned from the request.
Webobject that receives the policy decision.
Policy Decision Listener
This method is invoked when a targeted navigation decision needs to be made. A targeted navigation typically opens a new window to display content. The receiver implements a policy decision by sending one of the
Web protocol messages to
listener. This method allows delegates to modify the behavior of targeted links which normally open a new window. Delegates might do something else, such as download or present the content in a special way. If this method sends
listener then the new window will be opened, and
web will be invoked with a
Web as the value for the
Web key in the action dictionary.
The default behavior sends