File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 22layout : page
33title : Safari
44---
5- To run Safari on macOS, some manual setup is required:
5+ To run Safari on macOS, some manual setup is required. Some steps are different
6+ for Safari and Safari Technology Preview, in which case only step is needed.
67
7- * Allow Safari to be controlled by SafariDriver: ` safaridriver --enable `
8+ * Allow Safari to be controlled by SafariDriver:
9+ * ` safaridriver --enable ` or
10+ * ` "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" --enable `
811
912 * Allow pop-up windows:
10- ` defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1 `
13+ * ` defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1 ` or
14+ * ` defaults write com.apple.SafariTechnologyPreview WebKitJavaScriptCanOpenWindowsAutomatically 1 `
1115
12- * Turn on experimental features that are "off" by default:
13-
14- * ` defaults write com.apple.Safari ExperimentalServerTimingEnabled -bool true `
15-
16- [ // ] : # ( TODO\( cvazac\) Remove this if/when Server-Timing is enabled by default in Safari )
16+ * Turn on additional experimental features Safari Technology Preview:
17+ * ` defaults write com.apple.SafariTechnologyPreview ExperimentalServerTimingEnabled 1 `
1718
1819 * Trust the certificate:
19- ` security add-trusted-cert -k "$(security default-keychain | cut -d\" -f2)" tools/certs/cacert.pem `
20+ * ` security add-trusted-cert -k "$(security default-keychain | cut -d\" -f2)" tools/certs/cacert.pem `
2021
2122 * Set ` no_proxy='*' ` in your environment. This is a
2223 workaround for a known
Original file line number Diff line number Diff line change 11parameters :
22 channel : preview
33
4+ # Should match https://web-platform-tests.org/running-tests/safari.html
45steps :
56- ${{ if eq(parameters.channel, 'preview') }} :
67 - script : |
78 # This is equivalent to `Homebrew/homebrew-cask-versions/safari-technology-preview`,
89 # but the raw URL is used to bypass caching.
910 HOMEBREW_NO_AUTO_UPDATE=1 brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask-versions/master/Casks/safari-technology-preview.rb
10- # https://web-platform-tests.org/running-tests/safari.html
1111 sudo "/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver" --enable
12- defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1
12+ defaults write com.apple.SafariTechnologyPreview WebKitJavaScriptCanOpenWindowsAutomatically 1
13+ defaults write com.apple.SafariTechnologyPreview ExperimentalServerTimingEnabled 1
1314 displayName: 'Install Safari Technology Preview'
1415 - ${{ if eq(parameters.channel, 'stable') }} :
1516 - script : |
16- # https://web-platform-tests.org/running-tests/safari.html
1717 sudo safaridriver --enable
1818 defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically 1
1919 displayName: 'Configure Safari'
You can’t perform that action at this time.
0 commit comments