Decides whether to display content with a given MIME type.
- macOS 10.2–10.14Deprecated
The associated web view.
The MIME type of the content.
The request to load the content.
The frame for displaying the content.
The object that receives the policy decision.
This method is invoked during the process of loading content for
request after the webView:didStartProvisionalLoadForFrame: method in the
Web protocol is called by the
Web object. The web view implements a policy decision by sending one of the
Web protocol messages to
If you do not implement this method, the default behavior is used. The listener is told to ignore the MIME type unless
web specifies it can handle the type in its
In some rare cases, multiple responses may be received for a single resource. This happens in the case of multipart/x-mixed-replace, also known as a “server push.” In this case, this method will be invoked multiple times.