fix(firefox): force fast shutdown after "xpcom-will-shutdown" phase (#18556)

This commit is contained in:
Dmitry Gozman 2022-11-04 09:02:13 -07:00 committed by GitHub
parent 227f47effb
commit 7a9f1b5ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,10 @@ export class Firefox extends BrowserType {
// Prefs for quick fixes that didn't make it to the build. // Prefs for quick fixes that didn't make it to the build.
// Should all be moved to `playwright.cfg`. // Should all be moved to `playwright.cfg`.
const kBandaidFirefoxUserPrefs = { const kBandaidFirefoxUserPrefs = {
// Avoid stalling on shutdown, after "xpcom-will-shutdown" phase.
// This at least happens when shutting down soon after launching.
// See AppShutdown.cpp for more details on shutdown phases.
'toolkit.shutdown.fastShutdownStage': 3,
}; };
const kDisableFissionFirefoxUserPrefs = { const kDisableFissionFirefoxUserPrefs = {