8000 chore: disable default async spellchecker on Windows by VerteDinde · Pull Request #29690 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: disable default async spellchecker on Windows #29690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

VerteDinde
Copy link
Member
@VerteDinde VerteDinde commented Jun 14, 2021

Description of Change

Fixes #29685

In Electron 13, Chromium added a new feature to the spellchecker, kWinRetrieveSuggestionsOnlyOnDemand. Available for Windows only and now enabled by default, if kWinRetrieveSuggestionsOnlyOnDemand is set, suggestions will be retrieved on demand when the context menu is brought up with a misspelled word selected.

However, as part of this change, the spellcheck results returned by this method will have empty suggestion lists. These empty suggestions are what are returned to the Electron app when this feature is enabled, causing strange behavior. This PR adds this feature flag to the disabled_features list, so that suggestions lists are correctly returned by spellchecker methods.

Checklist

Release Notes

Notes: Fixed a feature flag issue where spellchecker methods returned empty suggestion lists on Windows.

@VerteDinde VerteDinde requested a review from a team as a code owner June 14, 2021 20:31
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jun 14, 2021
@jkleinsc jkleinsc added semver/patch backwards-compatible bug fixes target/13-x-y labels Jun 14, 2021
Copy link
Contributor
@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this feature be disabled in shell/browser/feature_list.cc instead of adding a patch?

@VerteDinde
Copy link
Member Author

@zcbenz Oh yes, that's a much better approach than adding a patch - thanks so much! 🙂

@VerteDinde VerteDinde merged commit af276c9 into main Jun 15, 2021
@VerteDinde VerteDinde deleted the disable-WinRetrieveSuggestionsOnlyOnDemand-by-default branch June 15, 2021 16:11
@release-clerk
Copy link
release-clerk bot commented Jun 15, 2021

Release Notes Persisted

Fixed a feature flag issue where spellchecker methods returned empty suggestion lists on Windows.

@trop
Copy link
Contributor
trop bot commented Jun 15, 2021

I have automatically backported this PR to "14-x-y", please check out #29705

@trop
Copy link
Contributor
trop bot commented Jun 15, 2021

I have automatically backported this PR to "13-x-y", please check out #29706

BlackHole1 pushed a commit to BlackHole1/electron that referenced this pull request Aug 30, 2021
* chore: disable default async spellchecker on Windows

* chore: disable kWinRetrieveSuggestionsOnlyOnDemand in feature list
deepak1556 added a commit that referenced this pull request Jan 7, 2025
Amends the fix from #29690
since the feature flag is no longer available. We follow the
same pattern as //chrome/browser/renderer_context_menu/spelling_menu_observer.cc
to generate the suggestion list on demand when context menu action
is invoked.
dsanders11 added a commit that referenced this pull request Jan 9, 2025
Amends the fix from #29690
since the feature flag is no longer available. We follow the
same pattern as //chrome/browser/renderer_context_menu/spelling_menu_observer.cc
to generate the suggestion list on demand when context menu action
is invoked.

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
ckerr pushed a commit that referenced this pull request Jan 10, 2025
* chore: bump chromium in DEPS to 133.0.6902.0

* chore: bump chromium in DEPS to 133.0.6903.0

* chore: update patches

* Update PdfViewer Save File Picker to use showSaveFilePicker.

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6074308

* Code Health: Clean up stale MacWebContentsOcclusion

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6078344

* Change RenderProcessHost::GetID to RenderProcessHost::GetDeprecatedID

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6065543

* [WebRTC] Make WebRTC IP Handling policy a mojo enum

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6063620

* chore: gen filenames.libcxx.gni

* Remove allow_unsafe_buffers pragma in //printing

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6092280

* refactor: to use ChildProcessId where possible

Refs https://issues.chromium.org/issues/379869738

* [Win] Update TabletMode detection code

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6003486

* chore: bump chromium in DEPS to 133.0.6905.0

* chore: update patches

* Reland "Move global shortcut listener to //ui/base"

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6099035

* [shared storage] Implement the batch `with_lock` option for response header

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6072742

* chore: bump chromium in DEPS to 133.0.6907.0

* chore: bump chromium in DEPS to 133.0.6909.0

* chore: bump chromium in DEPS to 133.0.6911.0

* chore: bump chromium in DEPS to 133.0.6912.0

* chore: update patches

* WebUI: Reveal hidden deps to ui/webui/resources.

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6096291

* chore: bump chromium in DEPS to 133.0.6913.0

* chore: bump chromium in DEPS to 133.0.6915.0

* Code Health: Clean up stale base::Feature "AccessibilityTreeForViews"

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6104174

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>

* fix: remove fastapitypedarray usage

* chore: update patches

* chore: script/gen-libc++-filenames.js

* Code Health: Clean up stale base::Feature "WinRetrieveSuggestionsOnlyOnDemand"

Refs https://chromium-review.googlesource.com/c/chromium/src/+/6109477

* fix: empty suggestions with windows platform checker

Amends the fix from #29690
since the feature flag is no longer available. We follow the
same pattern as //chrome/browser/renderer_context_menu/spelling_menu_observer.cc
to generate the suggestion list on demand when context menu action
is invoked.

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>

* fixup! fix: empty suggestions with windows platform checker

* fixup! fix: empty suggestions with windows platform checker

* revert: 6078344: Code Health: Clean up stale MacWebContentsOcclusion | https://chromium-review.googlesource.com/c/chromium/src/+/6078344

* Revert "revert: 6078344: Code Health: Clean up stale MacWebContentsOcclusion | https://chromium-review.googlesource.com/c/chromium/src/+/6078344"

This reverts commit 9cacda4.

* chore: bump to 133.0.6920.0, update patches

* Revert "6078344: Code Health: Clean up stale MacWebContentsOcclusion"

Refs: https://chromium-review.googlesource.com/c/chromium/src/+/6078344

* fixup! Update PdfViewer Save File Picker to use showSaveFilePicker.

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
Co-authored-by: Keeley Hammond <khammond@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-pr 🌱 PR opened recently semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Empty dictionarySuggestions on Windows since electron 13.x
5 participants
0