Questions tagged [safari-web-extension]

Apple's implementation, starting with MacOS 11/Safari 14, of the browser extension API already in use by Firefox and Google Chrome

Safari Web Extensions are Apple's implementation of the extension APIs now common among Safari, Firefox, and Google Chrome.

Official Documentation

Safari Web Extensions are distinct from Safari App Extensions, which focus on interoperability of native MacOS and iOS applications and the browser. Safari Extension is a legacy API deprecated with MacOS 10.12.

45 questions
2
votes
2 answers

setInterval not working properly on safari web extension

I've recently ported my chrome extension to safari using the safari web extension converter: https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari. However, I'm finding that my…
2
votes
0 answers

Why does Safari ignore manifest.json matches when Always Allowed

I am trying to make my WebExtension work with Safari. Why do all content scripts get injected into every page regardless of what I set matches to in manifest.json? { "name": "Search Engine Detector", "version": "1.0.0", …
2
votes
1 answer

Adding Subscription In-App Purchase to Safari Web Extension

I have created a Safari Web Extension, now I want to add Subscription In-App Purchase into this app. Since the Safari Web Extension has two parts: the Mac App and the Extension. I want to ask can I add the IAP codes into the Extension part? So, the…
RRN
  • 1,127
  • 1
  • 12
  • 37
2
votes
1 answer

Safari Web Extension horribly slow

So I created a Safari Web Extension. I did not change any piece of code and ran the template code provided by Xcode. I clicked on the toolbar item and a blank popover window popped up. It took around a good 5 seconds to load the "Hello World!"…
1
vote
2 answers

How to switch tabs in a browser Web Extension

As title states ^ In these docs, there's a lot of support for working with tabs. https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs Including moving tabs around, deleting them, duplicating, reloading, executing…
1
vote
0 answers

How to access Safari browser Reader Mode content from my Safari Extension?

Background I am developing a Safari Web Extension and need to do following (simplified): Initiate action from extension popup. Extract main text from the opened web page. Process the text in the cloud. Update DOM with processed text. Current…
1
vote
2 answers

Safari on Mac doesn't allow to enable my extension

I develop an extension for Safari on Mac. I test situation when extension is disabled, so I uncheck(disable) it in Safari Preferences, but cannot check(enable) it again. Safari shows me message: Safari detected an app or service that interfered…
IvanD
  • 11
  • 1
1
vote
1 answer

Unable to create outbound unix domain socket in Safari Web Extension Native App

I am creating a Safari Web Extension to add some security features to Safari browser. Web Extension has 2 parts, 1st - script code, which loads in browser and 2nd - a separate application/process called Native App which gets notifications and data…
Anand
  • 19
  • 6
1
vote
0 answers

firebase auth signInWithCustomToken on safari web extension not working

Firebase auth with signInWithCustomToken not working on Safari web extension. also firebase.auth().signInWithCredential(credential) not working. the code is executed from the content…
1
vote
0 answers

Converting safari web extension from git repo not successful

I'm trying to convert a chrome web extension to a safari extension. My environment is a Big Sur VM with XCode 12.5.1. When I clone the extension's git repo (https://github.com/toobeeh/skribbltypo) and try to convert it with "xcrun…
tobeh
  • 11
  • 2
1
vote
0 answers

Safari Web Extension background request CORS issue

I am working on Safari Web Extension on on iOS 15, everything seems smooth so far except one thing: The fetch request from background.js will always fail since it is cross origin and hence throws CORS error. If I add the…
Swami Nathan
  • 411
  • 2
  • 8
1
vote
0 answers

Safari Web Extension icon does not open popup from the overflow (>>) menu

Video showing the bug: https://www.youtube.com/watch?v=tQoOYWe0jfE Install any Safari Web Extension from the Mac App Store (e.g. DuckDuckGo Privacy Essentials, Bitwarden Password Manager). Resize the Safari window until the extension browser_action…
1
vote
0 answers

documentUrlPatterns not respecting pathnames

I am running into some issues when attempting to use documentUrlPatterns with my web extension, on Safari, when creating context menu items. Example: browser.contextMenus.create({id: "12354", title:…
0
votes
0 answers

How can a Safari Web Extension perform authentified requests?

I am trying to create a Safari Web Extension that leverages a web service where authentication is required. My goal is to reproduce what is already working in both Chrome and Firefox, meaning I should be able to use the Fetch API to send requests to…
Dalzhim
  • 1,970
  • 1
  • 17
  • 34
0
votes
0 answers

Do iOS Safari ServiceWorkers get shut down due to thermal state?

I'm working on an iOS Safari extension that has a ServiceWorker. Lately we've noticed that this ServiceWorker seems to get killed seemingly at random, and there are no logs or crash reports to tell us what happened. I'm hypothesizing that iOS might…