We need to implement the decidePolicyForResponse callback in our policy client.
The basic rule should be that if the view can show the MIME type, then we should accept the request, otherwise we should download it.
Created attachment 152559 [details]
The patch is based on Qt's implementation, except for the resourceResponse.isAttachment() check which is inspired from GTK port.
Comment on attachment 152559 [details]
Clearing flags on attachment: 152559
Committed r122803: <http://trac.webkit.org/changeset/122803>
All reviewed patches have been landed. Closing bug.