refactor: remove spellcheck::kWinDelaySpellcheckServiceInit patch (#48843)

refactor: remove spellcheck::kWinDelaySpellcheckServiceInit patch
This commit is contained in:
Shelley Vohr
2025-11-08 17:26:06 +01:00
committed by GitHub
parent bec1734d63
commit ab0ff5dffc
4 changed files with 1 additions and 770 deletions

View File

@@ -586,6 +586,7 @@ Session::Session(v8::Isolate* isolate, ElectronBrowserContext* browser_context)
if (auto* service =
SpellcheckServiceFactory::GetForContext(browser_context)) {
service->SetHunspellObserver(this);
service->InitializeDictionaries(base::DoNothing());
}
#endif
}

View File

@@ -64,10 +64,6 @@ void InitializeFeatureList() {
std::string(",") + network::features::kLocalNetworkAccessChecks.name;
#if BUILDFLAG(IS_WIN)
disable_features +=
// Delayed spellcheck initialization is causing the
// 'custom dictionary word list API' spec to crash.
std::string(",") + spellcheck::kWinDelaySpellcheckServiceInit.name;
// Refs https://issues.chromium.org/issues/401996981
// TODO(deepak1556): Remove this once test added in
// https://github.com/electron/electron/pull/12904