Re: [webkit-dev] How to display new MIME types?
Re: [webkit-dev] How to display new MIME types?
- Subject: Re: [webkit-dev] How to display new MIME types?
- From: Jens Alfke <email@hidden>
- Date: Sat, 22 Jul 2017 19:32:16 -0700
> On Jul 21, 2017, at 7:19 PM, Conrad Shultz <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden