Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will Safari ever support WebExtensions api?

My web extension works with Chromium browsers, Firefox, Edge, but as I understand - it is impossible now just to open the same codebase with Safari browser?

like image 269
Vitaly Zdanevich Avatar asked Nov 22 '17 12:11

Vitaly Zdanevich


People also ask

Does Safari support Manifest JSON?

Safari 15.4 and later supports manifest versions 2 and 3. To evaluate compatibility for manifest keys in your extension, see Mozilla's compatibility table at Browser compatibility for manifest. json.

Can Safari get extensions?

In the Safari app , you can install extensions to customize the way your browser works. For example, extensions can help you find coupons when shopping, block content on websites, give you access to features from other apps, and more.

Can Safari use Chrome extensions?

Apple has now made it easier for developers to convert an existing Chrome/Edge/Firefox extension to a Safari Web Extension. In their release of XCode 12, they have introduced the Safari Web Extension Converter tool which gives you the ability to convert extensions made for other browsers to Safari Web Extensions.

What language are Safari extensions written in?

Safari app extensions use a combination of JavaScript, CSS, and native code written in Objective-C or Swift. Because you build Safari app extensions on the standard app extension model, you get many native app benefits: You bundle Safari app extensions inside your app and distribute them through the App Store.


2 Answers

Update 2021

The Safari support for WebExtensions was released in 2021 and is available from Safari 14 (shipped with macOS Big Sur). WebExtensions for Safari are published in the App Store. Documentation here: https://developer.apple.com/documentation/safariservices/safari_web_extensions

Original answer

We cannot possibly know this for sure, but Apple is currently not planning to support (a version of) the WebExtensions API. The name of the standard/specification is Browser Extension.

Apple is not part of the W3C group which attempts to make a cross browser standard: https://www.w3.org/community/browserext/participants

For more general info on the Browser Extension W3C working group, see https://browserext.github.io/browserext

The provisional spec can be found here: https://browserext.github.io/browserext/

like image 103
Smile4ever Avatar answered Nov 27 '22 05:11

Smile4ever


In macOS Big Sur, Safari will support the WebExtensions API:

New support for the WebExtensions API and migration tools allows developers to bring Chrome extensions to Safari — letting you personalize your browsing experience with new Safari extensions from your favorite developers.

like image 29
Danny Guo Avatar answered Nov 27 '22 06:11

Danny Guo