From 364f3ed265d7f2368a8c9c8f48ee63354fd3aee0 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 11:54:00 -0500 Subject: [PATCH] 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 --- shell/browser/api/electron_api_session.cc | 1 + shell/browser/feature_list.cc | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/shell/browser/api/electron_api_session.cc b/shell/browser/api/electron_api_session.cc index a4242bcf1a2e..adfd4a0b46fc 100644 --- a/shell/browser/api/electron_api_session.cc +++ b/shell/browser/api/electron_api_session.cc @@ -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 } diff --git a/shell/browser/feature_list.cc b/shell/browser/feature_list.cc index 178c101336ca..e5c5c957f553 100644 --- a/shell/browser/feature_list.cc +++ b/shell/browser/feature_list.cc @@ -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