-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Brave Search as an alternative search #8966
Conversation
@jamesmudgett can you provide icons for Brave search for onboarding ? |
9ed4c03
to
e93bfe3
Compare
e93bfe3
to
0e84420
Compare
c2afa8d
to
ab791f3
Compare
android/java/org/chromium/chrome/browser/onboarding/OnboardingPrefManager.java
Outdated
Show resolved
Hide resolved
2a56192
to
890e69b
Compare
Ready for review 😄 |
64a580a
to
8066d71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for chromium_src/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ with one nit(assert
) 😄
Will fix above (thanks, @simonhong!)- looking at CI, I'm seeing this browser test failure on macOS / Linux / Windows:
Will check this out too... |
3ac92ad
to
8b09acc
Compare
Update search onboarding Format code
This ensures user is in US/CA before show Brave Search during brave://welcome experience. We'll update this as search rolls out
8b09acc
to
c0ae8cf
Compare
This is supposed to be matching false when no opensearch provider is there - but now Brave Search is packaged. We'll have to rethink test
I've got a lint fix and a JavaScript unit test fix (changing |
0a741b3
to
d308a48
Compare
Verification passed on OnePlus 6T with Android 10 running 1.28.11 x64 Nightly build Onboarding
Search engines screen
Autocomplete suggestions test
Also encountered the following issues
|
Verification PASSED on
|
Japan Onboarding |
Germany Onboarding |
France Onboarding |
USA & Canada Onboarding |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Japan SE Settings |
Germany SE Settings |
France SE Settings |
USA & Canada SE Settings |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
URL Query Test Cases
- ensured that the correct query URL is being used when
Brave Search beta
is the default search engine:omnibox
--> https://search.brave.com/search?q=brave&source=desktophttps://search.brave.com
--> https://search.brave.com/search?q=basic+attention+token
Default Callback Test Cases
Note: used the cases that I ran through iOS
via brave/brave-ios#3745 (comment) as a template for desktop. Also note that at the time of running through this case for uplift, we needed to use search-dev.brave.com
to verify the default callback
feature.
Test Case 1: (Setting as default via page)
- install
1.28.13 Chromium: 91.0.4472.114
- don't run through the search onboarding and leave
Google
as the default browser - login into
https://search-dev.brave.com
- search for
Brave Browser
via the text field - click on the
Set default
button via the default modal withinhttps://search-dev.brave.com
- you should see the button turn from
Set default
-->Done
and disappear - check and ensure
https://search-dev.brave.com
is set as the default via brave://settings/search
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Test Case 2: (Private Browsing)
- install
1.28.13 Chromium: 91.0.4472.114
- don't run through the search onboarding and leave
Google
as the default browser - launch open * login into
https://search-dev.brave.com
viaPrivate Browsing
- search for
Basic Attention Token
via the text field - shouldn't see any Brave Search
Default
modals
Test Case 3: (Default modal retries per session)
- install
1.28.13 Chromium: 91.0.4472.114
- don't run through the search onboarding and leave
Google
as the default browser - login into
https://search-dev.brave.com
- search for
Brave Browser
via the text field - the
default
modal should appear - refresh the page two times (should see the
default
modal appear - refresh again and you shouldn't see the
default
modal appear for this session - open a new tab, open
https://search-dev.brave.com
and try another search (shouldn't see any more modals for this session)
As per the above, this checks to make sure that the Default
modal only appears three times per session.
Test Case 4: (Maximum 10 retries)
- install
1.28.13 Chromium: 91.0.4472.114
- don't run through the search onboarding and leave
Google
as the default browser - login into
https://search-dev.brave.com
- search for
Brave Browser
via the text field - the
default
modal should appear - refresh the page two times (should see the
default
modal appear - refresh again and you shouldn't see the
default
modal appear for this session - open a new tab, open
https://search-dev.brave.com
and try another search (shouldn't see any more modals for this session) - close Brave and move the time forward by 24hrs
Repeat the above. The basic logic for the above is that on desktop/android, we should only see 3 modals
per session per day to a maximum of 10 in a span of four days.
Test Case 5: (Setting Brave Search as default via onboarding)
- install
1.28.13 Chromium: 91.0.4472.114
- Set
Brave Search beta
as the default SE viabrave://welcome
- login into
https://search-dev.brave.com
- search for
Brave Browser
via the text field - ensure that the
default
modal isn't being displayed
Test Case 6: (Setting Brave Search as default via brave://settings/search
)
- install
1.28.13 Chromium: 91.0.4472.114
- Set
Brave Search beta
as the default SE viabrave://settings/search
- login into
https://search-dev.brave.com
- search for
Brave Browser
via the text field - ensure that the
default
modal isn't being displayed
Fallback Test Cases
- ensured that the
Enable Google Fallback mixing
appears when searching for terms likebrave 123 456 789
- ensured that tapping on
Dismiss
correctly closes theEnable Google Fallback mixing
card- ensured that it re-appears when another term that needs
fallback
is used
- ensured that it re-appears when another term that needs
- ensured that
Learn more.
opens https://search.brave.com/help/google-fallback - ensured that
https://www.google.com
isn't being contact whenfallback
is disabled - ensured that
https://www.google.com
is being contact oncefallback
has been enabled
Example |
Example |
Example |
---|---|---|
![]() |
![]() |
![]() |
Security review https://github.com/brave/security/issues/486
Resolves brave/brave-browser#15663
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
TBD