> On Jul 21, 2017, at 7:19 PM, Conrad Shultz <conrad_shu...@apple.com> wrote:
> 
> You can build a Safari extension as an app extension bundled with an app, 
> meaning you can write your extension in Swift or Objective-C (and JavaScript).

It doesn’t look like these can do what the OP wants to do — display a specific 
MIME type in Safari. Safari Extensions are triggered by web pages loading, and 
can inject JS or CSS, which implies that the page is already HTML-based. If 
Safari encounters a page whose MIME type is “application/foobar”, it’s not 
going to display any HTML, it’s going to download it as a file and the 
extension never gets to run.

—Jens

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to