4 ms·
To summarize a couple of points about Safari's extension functionality for those that are not familiar with it: * Safari used to have a "legacy" (and proprieta
by saagarjha 6y ago
To summarize a couple of points about Safari's extension functionality for those that are not familiar with it:
* Safari used to have a "legacy" (and proprietary) web extension API that was essentially a bundle of HTML/CSS/JavaScript and was (usually) distributed through the Safari Extensions Gallery. Distributing extensions this way was free. While never a huge platform due to Mac Safari's relatively low market share, it had a number of fairly decent extensions.
* In OS X El Capitan Apple rolled their extensions signing program into the Apple developer program, which costs $100/year. Extensions that were not signed would be "untrusted" and would be quite annoying to install. Many extension developers openly criticized the move–some refused to continue supporting Safari.
* Almost simultaneously, Apple introduced their content blocking API, where extensions could declare a list of what are essentially regular expressions to block content. This model is quite similar to Chrome's declarativeWebRequest API in that extensions have little flexibility at runtime to vet requests. This API works in Safari on macOS as well as 64-bit iOS devices.
* With Safari 12 Apple deprecated the old web extensions model (no longer loading these) and introduced a new extensions model, App Extensions. These are native bundles that run out-of-process and communicate with JavaScript that you can inject into the page. Again, these bundles must be signed with a (paid) developer ID certificate and be sandboxed. Distribution via the App Store is recommended but not required. Any remaining extensions that share code across browsers (i.e. not using native code) are now locked out of the platform.
* (This announcement, which is a rehash of the one at WWDC from this June) In Safari 14 Apple is supporting a conversion tool that converts your standard WebExtension into something that Safari can load, with the same signing and distribution restrictions as app extensions (costs money, sandbox). Many simple APIs are available, but there is the notable absence of the ability to block requests–so uBlock cannot be ported, for example. NoScript does not seem possible to implement either.
* Safari on iOS has never supported extensions–this hasn't changed. The only extensibility available there is still just content blockers using declarative lists.
- TedDoesntTalk 6y ago> Many simple APIs are available, but there is the notable absence Is there a list of WebExtension APIs that are supported / not supported? I could not find one at developer.apple.com
- saagarjha 6y agoThis is the most complete list I could find: https://developer.apple.com/documentation/safariservices/safari_web_extensions/assessing_your_safari_web_extension_s_browser_compatibility https://developer.apple.com/documentation/safariservices/saf...
- deleted 6y ago[deleted]
- mekster 6y agoIs $100 a year that big of a deal? It also blocks out anonymous developers.
- raxxorrax 6y agoAs a road bandit I would at least try $200.
- Mindwipe 6y agoIt's the perfect storm of being very affordable for scammers as a cost of business but being attached to a fundamental lack of anonymity and a single point of control that makes it so dangerous for anyone developing tools to fight oppressive governments etc.
- ascagnel_ 6y agoThe $100/year pricing makes me think of the discussions about making email a paid service to fight spam (a single message would cost a fraction of a penny, so "normal" users would pay a cent or two a year while spammers would pay tens of thousands). It's both good and bad; it means there are a few roadblocks to distributing an extension (nefarious or not), but it's also not such a huge roadblock that a bad actor can't work around it.