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

refactor: remove spellcheck::kWinDelaySpellcheckServiceInit patch

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2025-11-10 11:54:00 -05:00
committed by GitHub
parent 52f0b08bbb
commit 364f3ed265
2 changed files with 1 additions and 4 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