Just enable remote automation for Safari (#120)

Enabling `Develop` menu started failing in 14.3 with:

```console
Could not write domain /Users/admin/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari; exiting
```

We actually only interested in enabling remote automation for CI which is done by `safaridriver`. Having `Develop` menu item is not necessary.
This commit is contained in:
Fedor Korotkov 2024-01-23 23:14:16 +04:00 committed by GitHub
parent fb83953b1b
commit 13071e71be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 9 deletions

View File

@ -102,10 +102,8 @@ build {
"disown",
"sleep 30",
"kill -9 $SAFARI_PID",
// Enable Safari's remote automation and "Develop" menu
// Enable Safari's remote automation
"sudo safaridriver --enable",
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
"defaults write com.apple.Safari IncludeDevelopMenu -bool true",
// Disable screen lock
//
// Note that this only works if the user is logged-in,

View File

@ -112,10 +112,8 @@ build {
"disown",
"sleep 30",
"kill -9 $SAFARI_PID",
// Enable Safari's remote automation and "Develop" menu
// Enable Safari's remote automation
"sudo safaridriver --enable",
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
"defaults write com.apple.Safari IncludeDevelopMenu -bool true",
// Disable screen lock
//
// Note that this only works if the user is logged-in,

View File

@ -108,10 +108,8 @@ build {
"disown",
"sleep 30",
"kill -9 $SAFARI_PID",
// Enable Safari's remote automation and "Develop" menu
// Enable Safari's remote automation
"sudo safaridriver --enable",
"defaults write com.apple.Safari.SandboxBroker ShowDevelopMenu -bool true",
"defaults write com.apple.Safari IncludeDevelopMenu -bool true",
// Disable screen lock
//
// Note that this only works if the user is logged-in,