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 коммит произвёл GitHub
Родитель 227f47effb
Коммит 7a9f1b5ee4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -93,6 +93,10 @@ export class Firefox extends BrowserType {
// Prefs for quick fixes that didn't make it to the build.
// Should all be moved to `playwright.cfg`.
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 = {