Skip to content
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

[Android] Fix for search widget suggestions #27974

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

samartnik
Copy link
Contributor

@samartnik samartnik commented Mar 5, 2025

Removed obsolete check that blocked upstream's code execution.

Resolves brave/brave-browser#40610

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

Removed obsolete check that blocked upstream's code execution.
@samartnik samartnik added CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-ios Do not run CI builds for iOS CI/skip-windows-x64 Do not run CI builds for Windows x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 labels Mar 5, 2025
@samartnik samartnik added this to the 1.78.x - Nightly milestone Mar 5, 2025
@samartnik samartnik self-assigned this Mar 5, 2025
@samartnik samartnik requested a review from a team as a code owner March 5, 2025 14:51
Copy link
Member

@SergeyZhukovsky SergeyZhukovsky left a comment

Choose a reason for hiding this comment

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

++

Copy link
Contributor

@deeppandya deeppandya left a comment

Choose a reason for hiding this comment

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

LGTM

@samartnik samartnik merged commit 92a554d into master Mar 5, 2025
19 checks passed
@samartnik samartnik deleted the android_search_widget_suggestions_fix branch March 5, 2025 22:41
brave-builds added a commit that referenced this pull request Mar 5, 2025
brave-builds added a commit that referenced this pull request Mar 5, 2025
@brave-builds
Copy link
Collaborator

Released in v1.78.21

@hffvld
Copy link
Collaborator

hffvld commented Mar 6, 2025

Verified on Galaxy Z Fold 6 using version(s):

Device/OS: Galaxy Z Fold 6 / q6quew-user 14 UP1A.231005.007 release-keys
Brave build: 1.78.21 
Chromium: 134.0.6998.45 (Official Build) canary (64-bit) 

Show browser suggestions is ON

STEPS:

  1. Fresh install and launch Brave
  2. Hamburger menu > Settings > Search engines
  3. Make sure Show browser suggestions, Show search suggestions and Show top sites suggestions are ON
  4. Close Brave and add Search widget to a Home screen
  5. Type a query in the search widget > Verify that suggested searches and websites are both shown
  6. Open Brave > Hamburger menu > Settings > Search engines
  7. Disable Show search suggestions
  8. Go back to the widget > Type a query > Verify that only suggested websites are shown
  9. Open Brave > Hamburger menu > Settings > Search engines
  10. Enable Show search suggestions, but disable Show top sites suggestions
  11. Go back to the widget > Type a query > Verify that only suggested searches are shown
  12. Open Brave > Hamburger menu > Settings > Search engines
  13. Disable both Show search suggestions and Show top sites suggestions
  14. Go back to the widget > Type a query > Verify that no suggested searches or websites are shown

ACTUAL RESULTS:

  • Verified that suggested searches and websites are both shown, if Show browser suggestions, Show search suggestions and Show top sites suggestions are ON.
  • Verified that only suggested websites are shown, if Show browser suggestions and Show top sites suggestions are ON, but Show search suggestions is OFF.
  • Verified that only suggested searches are shown, if Show browser suggestions and Show search suggestions are ON, but Show top sites suggestions is OFF.
  • Verified that no suggested searches or websites are shown, if Show browser suggestions is ON, but Show search suggestions and Show top sites suggestions are OFF.

Suggested searches and websites are shown Only Ssuggested websites are shown Only Ssuggested searches are shown Suggested searches and websites are NOT shown
2025-03-06_11-54-35 2025-03-06_11-56-25 2025-03-06_11-57-32 2025-03-06_11-58-16
2025-03-06_11-55-24 2025-03-06_11-56-48 2025-03-06_11-57-48 2025-03-06_11-58-40
Show browser suggestions is OFF

STEPS:

  1. Fresh install and launch Brave
  2. Hamburger menu > Settings > Search engines
  3. Make sure Show browser suggestions, Show search suggestions and Show top sites suggestions are ON
  4. Disable Showbrowser suggestions
  5. Close Brave and add Search widget to a Home screen
  6. Type a query in the search widget > Verify that no suggested searches or websites are shown. Observed that both things are shown actually
  7. Open Brave > Hamburger menu > Settings > Search engines
  8. Enable Show browser suggestions
  9. Disable both Show search suggestions and Show top sites suggestions
  10. Disable Show browser suggestions
  11. Go back to the widget > Type a query > Verify that no suggested searches or websites are shown

ACTUAL RESULTS:

  • Verified that no suggested searches or websites are shown, if Show browser suggestions, Show search suggestions and Show top sites suggestions are OFF.
  • Observed that suggested searches and websites are both shown, if Show browser suggestions is OFF, but Show search suggestions and Show top sites suggestions are ON.

1 2 3 4 5
2025-03-06_12-13-08 2025-03-06_12-13-59 2025-03-06_12-17-03 2025-03-06_12-16-04 2025-03-06_12-16-33

@Soren01
Copy link

Soren01 commented Mar 7, 2025

Tested on version 1.78.21—the issue is gone! Thank you! – Poco X7 Pro (Android 15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-ios Do not run CI builds for iOS CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-macos-x64 Do not run CI builds for macOS x64 CI/skip-windows-x64 Do not run CI builds for Windows x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search widget does not initially populate suggestions/top sites
7 participants