Skip to content

Commit a236a2a

Browse files
committed
[Azure Pipelines] Enable experimental Server Timing in Safari TP
Like web-platform-tests/results-collection#621. Also update documentation to match.
1 parent 5354663 commit a236a2a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

docs/_running-tests/safari.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
layout: page
33
title: 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

tools/ci/azure/install_safari.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
parameters:
22
channel: preview
33

4+
# Should match https://web-platform-tests.org/running-tests/safari.html
45
steps:
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'

0 commit comments

Comments
 (0)