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

Update default search for 5 regions #10326

Merged
merged 3 commits into from
Oct 5, 2021
Merged

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Sep 29, 2021

Fixes brave/brave-browser#18331
Fixes brave/brave-browser#18415
Fixes brave/brave-browser#18452

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used GitHub auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • 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, npm run lint, 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:

@bsclifton bsclifton force-pushed the bsc-update-default-search branch 3 times, most recently from 2184f56 to 6c29134 Compare September 30, 2021 05:37
@bsclifton bsclifton force-pushed the bsc-update-default-search branch from 6c29134 to 2058682 Compare September 30, 2021 06:14
@bsclifton bsclifton marked this pull request as ready for review October 4, 2021 08:35
@bsclifton bsclifton requested a review from a team as a code owner October 4, 2021 08:35
@@ -132,6 +133,8 @@
BraveRewardsObserver, BraveRewardsNativeWorker.PublisherObserver {
public static final String PREF_HIDE_BRAVE_REWARDS_ICON = "hide_brave_rewards_icon";
private static final String JAPAN_COUNTRY_CODE = "JP";
private static final List<String> mBraveSearchEngineDefaultRegions =
Arrays.asList("CA", "DE", "FR", "GB", "US");
Copy link
Member Author

Choose a reason for hiding this comment

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

Besides these, I think we also need remove the US/CA restriction we added in 4808157 (to android/java/org/chromium/chrome/browser/onboarding/SearchEngineOnboardingFragment.java)

That way we can show Brave Search for all other regions (which don't have Brave Search as default)

Copy link
Member Author

@bsclifton bsclifton Oct 5, 2021

Choose a reason for hiding this comment

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

Actually - followed up with @ecnmst - no change needed here for now 😄

Not backing out the region part in 4808157 means that Brave Search will not show in search onboarding for regions outside CA/DE/FR/GB/US and that is OK for now

Copy link
Member

@goodov goodov left a comment

Choose a reason for hiding this comment

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

chromium_src lgtm. in general also lgtm.

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM, just had one minor nit.

@@ -41,6 +41,7 @@ declare namespace Welcome {

export interface State {
searchProviders: Array<SearchEngineEntry>
browserProfiles: Array<BrowserProfile>
browserProfiles: Array<BrowserProfile>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I don't think you need a comma here...

@bsclifton bsclifton merged commit e1e5c68 into master Oct 5, 2021
@bsclifton bsclifton deleted the bsc-update-default-search branch October 5, 2021 23:22
@bsclifton bsclifton added this to the 1.32.x - Nightly milestone Oct 5, 2021
bsclifton pushed a commit that referenced this pull request Oct 6, 2021
bsclifton added a commit that referenced this pull request Oct 7, 2021
…wnHost`

Fixes brave/brave-browser#18606

Unintentionally caused by #10326
- CI showed a clean run? this should have failed :/
- DefaultAPIVisibleKnownHost was failing on can it set brave.com as
  default. It can't, because after 10326 it's ALREADY default
@kjozwiak
Copy link
Member

kjozwiak commented Oct 11, 2021

Case brave/brave-browser#18331 (Update SE defaults) - Desktop

Verification PASSED on Win 11 x64 using the following build:

Brave | 1.32.63 Chromium: 95.0.4638.40 (Official Build) nightly (64-bit)
-- | --
Revision | e3e7c76ba0284b16087cf4cf3153abfaef6470c7-refs/branch-heads/4638@{#624}
OS | Windows 11 Version 21H2 (Build 22000.194)

Found brave/brave-browser#18683 & brave/brave-browser#18720 while running through brave/brave-browser#18331.

Upgrades for CA / DE / FR / GB / US

Canada

Clean Install:

  • ensured that the search section under brave://welcome was removed (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under brave://settings/search

CanadaClean

Upgrade Case (Default/Custom SE):

  • installed 1.32.45 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.45 Chromium: 94.0.4606.71 and selected Bing as the default SE from brave://settings/search
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Bing was still the default SE after upgrading
Default Upgrade Custom Upgrade
CanadaDefaultUpgrade CanadaCustomUpgrade

USA

Clean Install:

  • ensured that the search section under brave://welcome was removed (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under brave://settings/search

USAClean

Upgrade Case (Default/Custom SE):

  • installed 1.32.45 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.45 Chromium: 94.0.4606.71 and selected Startpage as the default SE from brave://settings/search
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Startpage was still the default SE after upgrading
Default Upgrade Custom Upgrade
USADefaultUpgrade USACustomUpgrade

GB

Clean Install:

  • ensured that the search section under brave://welcome was removed (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under brave://settings/search

GBClean

Upgrade Case (Default/Custom SE):

  • installed 1.32.45 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.45 Chromium: 94.0.4606.71 and selected Ecosia as the default SE from brave://settings/search
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Ecosia was still the default SE after upgrading
Default Upgrade Custom Upgrade
GBDefaultUpgrade GBCustomUpgrade

France

Clean Install:

  • ensured that the search section under brave://welcome was removed (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under brave://settings/search

FranceClean

Upgrade Case (Default/Custom SE):

  • installed 1.32.45 Chromium: 94.0.4606.71 and ensured that the default SE is set as Qwant
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Qwant was still the default SE after upgrading
  • installed 1.32.45 Chromium: 94.0.4606.71 and selected Ecosia as the default SE from brave://settings/search
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Ecosia was still the default SE after upgrading
Default Upgrade Custom Upgrade
FranceDefaultUpgrade FranceCustomUpgrade

Germany

Clean Install:

  • ensured that the search section under brave://welcome was removed (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under brave://settings/search

GermanyClean

Upgrade Case (Default/Custom SE)

  • installed 1.32.45 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.45 Chromium: 94.0.4606.71 and selected Brave as the default SE from brave://settings/search
  • upgraded to 1.32.63 Chromium: 95.0.4638.40 and ensured that Brave was still the default SE after upgrading
Default Upgrade Custom Upgrade
GermanyDefaultUpgrade GermanyCustomUpgrade

Case brave/brave-browser#18331 (Update SE defaults) - Android

Verification PASSED on Samsung S10+ running Android 11
using the following build:

Brave | 1.32.63 Chromium: 95.0.4638.40 (Official Build) nightly (64-bit)
-- | --
Revision | e3e7c76ba0284b16087cf4cf3153abfaef6470c7-refs/branch-heads/4638@{#624}
OS | Windows 11 Version 21H2 (Build 22000.194)

Upgrades for CA / DE / FR / GB / US

Canada

Clean Install:

  • ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under Settings -> Search engine for both Standard & Private tabs/windows
Standard Private
Screenshot_20211012-161743_Brave - Nightly Screenshot_20211012-161749_Brave - Nightly

Upgrade Case (Default/Custom SE):

  • installed 1.32.44 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.44 Chromium: 94.0.4606.71 and selected Bing as the default SE for both Standard & Private
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Bing was still the default SE after upgrading

USA

Clean Install:

  • ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under Settings -> Search engine for both Standard & Private tabs/windows
Standard Private
Screenshot_20211012-163521_Brave - Nightly Screenshot_20211012-163527_Brave - Nightly

Upgrade Case (Default/Custom SE):

  • installed 1.32.44 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.44 Chromium: 94.0.4606.71 and selected Brave as the default SE for Standard & Startpage for Private
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Brave & Startpage were still the default SE

GB

Clean Install:

  • ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under Settings -> Search engine for both Standard & Private tabs/windows
Standard Private
Screenshot_20211012-163813_Brave - Nightly Screenshot_20211012-163817_Brave - Nightly

Upgrade Case (Default/Custom SE):

  • installed 1.32.44 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.44 Chromium: 94.0.4606.71 and selected Qwant as the default SE for Standard & Ecosia for Private
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Qwant & Ecosia were still the default SE

France

Clean Install:

  • ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under Settings -> Search engine for both Standard & Private tabs/windows
Standard Private
Screenshot_20211012-164522_Brave - Nightly Screenshot_20211012-164527_Brave - Nightly

Upgrade Case (Default/Custom SE):

  • installed 1.32.44 Chromium: 94.0.4606.71 and ensured that the default SE is set as Qwant
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Qwant was still the default SE after upgrading
  • installed 1.32.44 Chromium: 94.0.4606.71 and selected DDG as the default SE for Standard & Bing for Private
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that DDG & Bing were still the default SE

Germany

Clean Install:

  • ensured that the search on-boarding modal was removed when tapping on the URL bar (Cases/Screenshots below)
  • ensured that Brave is the default SE on a clean profile
  • ensured that Brave appears as the default SE under Settings -> Search engine for both Standard & Private tabs/windows
Standard Private
Screenshot_20211012-165231_Brave - Nightly Screenshot_20211012-165235_Brave - Nightly

Upgrade Case (Default/Custom SE):

  • installed 1.32.44 Chromium: 94.0.4606.71 and ensured that the default SE is set as Google
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Google was still the default SE after upgrading
  • installed 1.32.44 Chromium: 94.0.4606.71 and selected Bing as the default SE for Brave & Ecosia for Private
  • upgraded to 1.32.66 Chromium: 95.0.4638.40 and ensured that Bing & Brave were still the default SE

Regions other than CA / DE / FR / GB / US

  • ensured that the on-boarding modal is displayed when a user taps on the URL bar
  • ensured that Brave search doesn't appear under the on-boarding modal
  • ensured that Brave search appears at the top under both Normal & Private windows via Settings -> Search engines

Spain

On-boarding Normal Window Private Window
Screenshot_20211012-123023_Brave - Nightly Screenshot_20211012-123037_Brave - Nightly Screenshot_20211012-123042_Brave - Nightly

Poland

On-boarding Normal Window Private Window
Screenshot_20211012-123234_Brave - Nightly Screenshot_20211012-123243_Brave - Nightly Screenshot_20211012-123248_Brave - Nightly

Russia

On-boarding Normal Window Private Window
Screenshot_20211012-134836_Brave - Nightly Screenshot_20211012-134849_Brave - Nightly Screenshot_20211012-134854_Brave - Nightly

Kazakhstan

On-boarding Normal Window Private Window
Screenshot_20211012-135455_Brave - Nightly Screenshot_20211012-135504_Brave - Nightly Screenshot_20211012-135509_Brave - Nightly

Case brave/brave-browser#18415 (Removed from brave://welcome)

Verification PASSED on Win 11 x64 using the following build:

Brave | 1.32.61 Chromium: 95.0.4638.40 (Official Build) nightly (64-bit)
-- | --
Revision | e3e7c76ba0284b16087cf4cf3153abfaef6470c7-refs/branch-heads/4638@{#624}
OS | Windows 11 Version 21H2 (Build 22000.194)
  • ensured that CA, USA, GB, DE & FR are not displaying the search engine selection screen under brave://welcome

Search section being removed from brave://welcome

CA USA GB DE FR
Canada USA GB Germany France

Search section shouldn't be removed from brave://welcome

  • ensured that locales such as Poland & Spain still have the search engine selection section under brave://welcome
Poland Spain
Poland Spain

Case brave/brave-browser#18452 (Removed on-boarding when tapping on URL)

Verification PASSED on Samsung S10+ running Android 11 using the following build:

1.32.61 Chromium: 95.0.4638.40
  • ensured that the search on-boarding was removed from CA, USA, GB, DE & FR when tapping on the URL bar
  • ensured that the search on-boarding was was being displayed for both Poland & Spain locales

Example of locales that still have on-boarding enabled when tapping on the URL bar:

Poland Spain
Screenshot_20211011-015351_Brave - Nightly Screenshot_20211011-015817_Brave - Nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants