Skip to content

Commit

Permalink
Bugfix FXIOS-6526 [v114] Update search urls (mozilla-mobile#14636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Standard8 authored May 30, 2023
1 parent 1483235 commit e6d4d5e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions Client/Assets/Search/SearchOverlays/baidu.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<SearchOverlay>
<replace target="//search:Param[@name='from' and @value='1000969a']">
<Param name="from" value="1000969c"/>
</replace>
<replace target="//search:Url[@type='application/x-moz-tabletsearch']">
<Url type="application/x-moz-tabletsearch" method="GET" template="https://m.baidu.com/s">
<Param name="from" value="1000969c"/>
<Param name="word" value="{searchTerms}"/>
</Url>
</replace>
Expand Down
3 changes: 0 additions & 3 deletions Client/Assets/Search/SearchPlugins/baidu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
<Param name="wd" value="{searchTerms}"/>
<Param name="action" value="opensearch"/>
<Param name="ie" value="UTF-8"/>
<Param name="from" value="1000969c"/>
</Url>
<Url type="text/html" method="GET" template="https://m.baidu.com/s">
<Param name="from" value="1000969c"/>
<Param name="word" value="{searchTerms}"/>
</Url>
<!-- As of Bug 861164, we can do a client-side detection to determine whether a user is using
tablet or a phone(relative to this case).
Note: The order of <URL> DOES not affect the way we pick between them.
-->
<Url type="application/x-moz-tabletsearch" method="GET" template="https://m.baidu.com/s">
<Param name="from" value="1000969c"/>
<Param name="word" value="{searchTerms}"/>
</Url>
<SearchForm>https://m.baidu.com/</SearchForm>
Expand Down
2 changes: 1 addition & 1 deletion Storage/DefaultSuggestedSites.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ open class DefaultSuggestedSites {
title: "火狐社区"
),
SuggestedSiteData(
url: "https://m.baidu.com/?from=1000969c",
url: "https://m.baidu.com/",
bgColor: "0x00479d",
imageUrl: "asset://suggestedsites_baidu",
faviconUrl: "asset://baiduLogo",
Expand Down

0 comments on commit e6d4d5e

Please sign in to comment.