Skip to content

Commit 3d44fca

Browse files
authored
feat(test): add MOZ_AUTOMATION=1 to ff test runner (#2049)
this ensures that ff launcher on windows wait for browser instead of creating detached instance and quitting for more info see ff wiki: https://wiki.mozilla.org/Platform/Integration/InjectEject/Launcher_Process/#Starting_Firefox_via_Automation_.2F_Scripting
1 parent 6e675f8 commit 3d44fca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Add support for `SAFARI_EXECUTABLE`, `FIREFOX_EXECUTABLE` and
99
`MS_EDGE_EXECUTABLE` for custom browser installations.
1010
* Allow the latest analyzer (6.x.x).
11+
* Add `MOZ_AUTOMATION=1` environmental variable to Firefox runner, to make
12+
launcher process on Windows wait for browser exit.
1113

1214
## 1.24.3
1315

pkgs/test/lib/src/runner/browser/firefox.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ class Firefox extends Browser {
4747
'--no-remote',
4848
...settings.arguments,
4949
], environment: {
50-
'MOZ_CRASHREPORTER_DISABLE': '1'
50+
'MOZ_CRASHREPORTER_DISABLE': '1',
51+
'MOZ_AUTOMATION': '1',
5152
});
5253

5354
unawaited(process.exitCode.then((_) => Directory(dir).deleteWithRetry()));

0 commit comments

Comments
 (0)