Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Add baidu search ad telemetry #11582

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ abstract class BaseSearchTelemetry {
queryParam = "word",
codeParam = "from",
codePrefixes = listOf("1000969a"),
followOnParams = listOf("oq")
followOnParams = listOf("oq"),
extraAdServersRegexps = listOf(
"^https?://www\\.baidu\\.com/baidu\\.php?",
"^https?://m\\.baidu\\.com/baidu\\.php?"
)
),
SearchProviderModel(
name = "bing",
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ permalink: /changelog/
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/main/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/main/.config.yml)

* **feature-search**
* Adds the `extraAdServersRegexps` of Baidu to help sending the baidu search telemetry of ads. [#11582](https://github.com/mozilla-mobile/android-components/pull/11582)

* **browser-toolbar**
* 🚒 Bug fixed [issue #11545](https://github.com/mozilla-mobile/android-components/issues/11545) - `clearColorFilter` doesn't work on Api 21, 22, so the default white filter remains set.Use `clearColorFilter` only when the version of API is bigger than 22

Expand Down