-
Notifications
You must be signed in to change notification settings - Fork 895
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
Search engine result pages are not being classified #3510
Conversation
c4b4f6f
to
5d71b0f
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
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 (untested - will test if I can get steps)
5d71b0f
to
0f28097
Compare
85f1aeb
to
5f21434
Compare
a787fa5
to
594f87d
Compare
@@ -49,12 +49,22 @@ const std::vector<SearchProviderInfo> _search_providers = { | |||
// TODO(https://github.com/brave/brave-browser/issues/8487): Brave Ads | |||
// search providers definition doesn't match all patterns | |||
"https://google.com", | |||
"https://www.google.com/search?q={searchTerms}", | |||
"https://www.google.com/search?{searchTerms}", |
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.
don't we need to include the q
as key here here so GetValueForKeyInQuery
knows which value to retrieve? Maybe we can change SearchProviderInfo
to include a key
property, then we don't need to do the regex bit on the pattern.
Closing PR as stale, will open a new PR when work is prioritized in the future |
Fixes brave/brave-browser#6000
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
https://amazon.com
https://baidu.com
https://bing.com
https://duckduckgo.com
https://fireball.com
https://github.com
https://google.com
https://google.ca
https://google.co.uk
https://google.co.jp
https://stackoverflow.com
https://developer.mozilla.org
https://twitter.com
https://en.wikipedia.org
https://search.yahoo.com
https://search.yahoo.co.jp
https://youtube.com
https://startpage.com
https://infogalactic.com
https://wolframalpha.com
https://semanticscholar.org
https://qwant.com
https://yandex.com
https://ecosia.org
https://searx.me
https://findx.com
Reviewer Checklist:
After-merge Checklist:
changes has landed on.