Commit 22aee12
authored
Improve Firefox browser process tracking (#25644)
Improve Firefox browser process tracking by using the -wait-for-browser
cmdline arg, and waiting longer for process startup.
Unfortunately `-wait-for-browser` is not enough to get rid of the
process delta polling, since the process handle returned by
`subprocess.Popen()` cannot be used to cascade the spawned Firefox
windows.
Waiting for 2 seconds for Firefox startup was not enough, so make the
wait time more conservative.
Add the detected processes to the list rather than replace, so that all
process handles are retained.
It may be possible to remove the use of
`launch_browser_harness_with_proc_snapshot_workaround()` for headless
Firefox runs, but more testing will be needed to verify that.1 parent 8690df6 commit 22aee12
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
2081 | 2081 | | |
2082 | 2082 | | |
2083 | 2083 | | |
2084 | | - | |
| 2084 | + | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
2090 | | - | |
| 2090 | + | |
2091 | 2091 | | |
2092 | 2092 | | |
2093 | 2093 | | |
| |||
0 commit comments