-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix default search logic for Tor window and guest window
Fixes brave/brave-browser#6476 Specifically, fixes the engine when a previously set engine is no longer available. For example, in DE the engine used to be DDG (501), but was changed in the prepopulated list to DDG_DE(516). The value in the preferences will not be able to be used to get a valid engine (and cause a crash). This change checks if the currently selected engine is available and if not resets the value to the currently preset default.
- Loading branch information
Showing
3 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters