1{
2    "output_dir": "output",
3
4    "browsers": [
5        {
6            "name": "Chrome",
7            "platforms": {
8                "darwin": {
9                    "paths": ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"]
10                },
11                "linux": {
12                    "paths": ["/opt/google/chrome/google-chrome"]
13                },
14                "win32": {
15                    "paths": ["C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"]
16                },
17                "remote-android": {
18                    "pre_launch_command": "adb shell \"echo 'chrome --disable-fre --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --ignore-gpu-blocklist --disable-gesture-requirement-for-media-playback' > /data/local/chrome-command-line\"",
19                    "package_name": "com.android.chrome",
20                    "main_activity": "com.android.chrome/com.google.android.apps.chrome.Main",
21                    "launch_intent": "android.intent.action.VIEW",
22                    "quit_command": "adb shell \"ps | grep chrome \" | awk '{print $2}' | xargs adb shell kill -9 && adb shell \"rm /data/local/chrome-command-line\""
23                 }
24            },
25
26            "profile_arg": "--user-data-dir=",
27
28            "args": [
29                "--no-first-run",
30                "--disable-gpu-driver-bug-workarounds",
31                "--ignore-gpu-blacklist",
32                "--ignore-gpu-blocklist"
33            ]
34        },
35
36        {
37            "name": "ChromeWinOpenGL",
38            "platforms": {
39                "win32": {
40                    "paths": ["C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"]
41                }
42            },
43
44            "profile_arg": "--user-data-dir=",
45
46            "args": [
47                "--no-first-run",
48                "--disable-gpu-driver-bug-workarounds",
49                "--ignore-gpu-blacklist",
50                "--ignore-gpu-blocklist",
51                "--use-gl=desktop"
52            ]
53        },
54
55        {
56            "name": "ChromeCanary",
57            "platforms": {
58                "darwin": {
59                    "paths": ["/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"]
60                },
61                "win32": {
62                    "paths": ["C:\\Program Files (x86)\\Google\\Chrome SxS\\Application\\chrome.exe"]
63                }
64            },
65
66            "profile_arg": "--user-data-dir=",
67
68            "args": [
69                "--no-first-run",
70                "--disable-gpu-driver-bug-workarounds",
71                "--ignore-gpu-blacklist",
72                "--ignore-gpu-blocklist"
73            ]
74        },
75
76        {
77            "name": "ChromeCanaryWinOpenGL",
78            "platforms": {
79                "win32": {
80                    "paths": ["C:\\Program Files (x86)\\Google\\Chrome SxS\\Application\\chrome.exe"]
81                }
82            },
83
84            "profile_arg": "--user-data-dir=",
85
86            "args": [
87                "--no-first-run",
88                "--disable-gpu-driver-bug-workarounds",
89                "--ignore-gpu-blacklist",
90                "--ignore-gpu-blocklist",
91                "--use-gl=desktop"
92            ]
93        },
94
95        {
96            "name": "Chromium",
97            "platforms": {
98                "darwin": {
99                    "paths": ["/Applications/Chromium.app/Contents/MacOS/Chromium"]
100                },
101                "linux": {
102                    "paths": ["/usr/bin/chromium-browser"]
103                },
104                "win32": {
105                    "paths": ["C:\\Program Files (x86)\\Google\\Chromium\\Application\\chromium.exe"]
106                }
107            },
108
109            "profile_arg": "--user-data-dir=",
110
111            "args": [
112                "--no-first-run",
113                "--disable-gpu-driver-bug-workarounds",
114                "--ignore-gpu-blacklist",
115                "--ignore-gpu-blocklist"
116            ]
117        },
118
119        {
120            "name": "ChromiumWinOpenGL",
121            "platforms": {
122                "win32": {
123                    "paths": ["C:\\Program Files (x86)\\Google\\Chromium\\Application\\chromium.exe"]
124                }
125            },
126
127            "profile_arg": "--user-data-dir=",
128
129            "args": [
130                "--no-first-run",
131                "--disable-gpu-driver-bug-workarounds",
132                "--ignore-gpu-blacklist",
133                "--ignore-gpu-blocklist",
134                "--use-gl=desktop"
135            ]
136        },
137
138        {
139            "name": "Firefox",
140            "platforms": {
141                "darwin": {
142                    "paths": ["/Applications/Firefox.app/Contents/MacOS/firefox"]
143                },
144                "linux": {
145                    "paths": ["/usr/bin/firefox"]
146                },
147                "win32": {
148                    "paths": ["C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"]
149                }
150            },
151
152            "profile_arg": "-profile",
153
154            "firefox_user_prefs": {
155                "webgl.force-enabled": true,
156                "browser.shell.checkDefaultBrowser": false,
157                "gfx.work-around-driver-bugs": false
158            },
159
160            "args": [
161                "-silent",
162                "-no-remote"
163            ]
164        },
165
166        {
167            "name": "FirefoxWinOpenGL",
168            "platforms": {
169                "win32": {
170                    "paths": ["C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"]
171                }
172            },
173
174            "profile_arg": "-profile",
175
176            "firefox_user_prefs": {
177                "webgl.force-enabled": true,
178                "browser.shell.checkDefaultBrowser": false,
179                "gfx.work-around-driver-bugs": false,
180                "webgl.prefer-native-gl": true
181            },
182
183            "args": [
184                "-silent",
185                "-no-remote"
186            ]
187        },
188
189        {
190            "name": "Safari",
191            "platforms": {
192                "darwin": {
193                    "paths": ["/Applications/Safari.app/Contents/MacOS/Safari"],
194                    "command": "open",
195                    "comment": "FIXME: find a way to send this command to precisely the right process",
196                    "quit_command": "osascript -e 'quit application \"Safari\"'"
197                }
198            },
199
200            "osx_defaults": {
201                "com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2WebGLEnabled": "1"
202            },
203
204            "args": [
205                "-F", "-W", "-n", "-a", "safari"
206            ]
207        }
208    ]
209}
210