Convert a WebExtensiions API (Chrome, Firefox) to Safari using Xcode 12 - safari

Apple have announced that Safari on macOS 11 will support WebExtensions API - how does one do it?

Found out by reading the description for this WWDC video.
Apparently there's a command-line tool. Run xcrun safari-web-extension-converter --help with Xcode 12 for more information.

Related

declarativeNetRequest doesn't work on Safari

I'm building a safari web extension. I tried the sample from Apple's official documentation,it doesn't work on safari
here is my environment: macOS 12.0+ / Xcode 13.4+ / Safari 15.1+
here is the sample:
https://developer.apple.com/documentation/safariservices/safari_web_extensions/adopting_declarative_content_blocking_in_safari_web_extensions

How to enable Safari ITP Debug mode

I'd like to force Safari to mark one of my domains as tracker with new ITP 2.0.
I followed the guide here https://webkit.org/blog/8387/itp-debug-mode-in-safari-technology-preview-62/
Since the new Technology Preview version (66) doesn't have ITP Debug mode I've used normal Safari 12.0 on macOS Mojave. After enabling ITP Debug mode and restaring Safari I don't see anything in logs as the guide suggest nor does setting
defaults write com.apple.SafariTechnologyPreview ResourceLoadStatisticsManualPrevalentResource example.com
have any effect (even with Safari instead of SafariTechnologyPreview). Do I need to change any other Safari or OS settings?
I've managed to get Safari Technology Preview 63 download link (https://secure-appldnld.apple.com/STP/091-99601-20180815-01EC2FD2-85EB-11E8-AB5B-AEA972136C40/SafariTechnologyPreview.dmg) via InternetArchive, ITP Debug mode works there.
Thank you Jakob. That helped me. To clarify your link, that version is only for OSX Mojave. Build 62 for High Sierra is available here: https://secure-appldnld.apple.com/STP/091-95878-20180801-01EC2FD2-85EB-11E8-AB5B-AEA972136C40/SafariTechnologyPreview.dmg
On newer version of Safari Technology Preview, or inside Safari 13.1+, you should use these updated steps for enabling debug, because the labels have changed: https://webkit.org/blog/9521/intelligent-tracking-prevention-2-3/
It says Catalina, but they also work for Mojave.

Xcode 6 with iOS 8 SDK can't run UI Automation in Instruments

I'm trying to capture UI Automation script with a sample project. I use Xcode 6 on OS X 10.9.3 and iOS 8 SDK, trying to capture script on iOS 8 simulator, but getting following error:
Script capture is not available on this device
SDK is still in beta, so maybe that's a common bug there. Did anyone else face this bug? Or maybe there's a workaround available?
When I try to do the same things with Xcode 5 / iOS SDK 7.1 everything goes fine.
You should enable UI Automation in the device settings: Settings -> Developer -> Enable UI Automation.
It works for me.
It's a known issue to apple and that they need to fix this which surely they will...
Check this out... Bug has been filed
http://openradar.appspot.com/radar?id=6099734162833408

Opentok audio echo Issue

I use opentok WebRTC js api for both 2.0 and 2.2 to develop. When I follow http://digitaltsai.com/ot/examples/restrictFrameRate.php and enable audio to test it with Mac and Nexus 7. There is an echo issue.
My test environment:
Nexus 7 with Chrome and Firefox, Android 4.4.
Mac OS with Chrome.
But if I test it on other WebRTC demo site (https://apprtc.appspot.com), there is no echo.
Does anyone know how to solve it?
Thanks.
Kos
I wish I could be more helpful but I cant reproduce the echo. One problem could be that your nexus 7 was too close to your mac when you are testing the restrictFrameRate. Can you reproduce this consistently? What if you tried http://opentokrtc.com ?

Where to download the latest Safari?

Does anyone know where on apple.com I can get the latest Safari? IE, Chrome, and Firefox all have "latest" version but I can not find a similar for Safari.
I would have guessed here, but no go.
http://support.apple.com/downloads/
You can't simply download Safari for OS X. You can get Safari updates that run on your installed OS X through the normal Apple Software Update or through the APP Store (I guess since 10.8).
Safari 6 is available for Mountain Lion and Lion only.
The latest version for PC is Safari 5.1.7. There's no version 6 available for PC. You can download it here: Safari 5.1.7 for Windows.
Safari for Windows is no longer developed. Since all links in existing answers are dead, or do not provide expected information.
I would like to provide a working link here -> SafariSetup