Closed
Bug 1233602
Opened 10 years ago
Closed 10 years ago
Search history items don't appear if search engine suggestions are disabled
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox44 verified, firefox45 verified, firefox46 verified, b2g-v2.5 fixed)
VERIFIED
FIXED
Firefox 46
People
(Reporter: ahunt, Assigned: ahunt)
References
Details
Attachments
(2 files)
|
58 bytes,
text/x-review-board-request
|
liuche
:
review+
ritu
:
approval-mozilla-aurora+
|
Details |
|
2.40 KB,
patch
|
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1. Check that Search History is enabled, Search suggestions are disabled
(Settings->Search->"Show search suggestions"=false / "Show search history"=true)
2. Kill and restart firefox
3. Make a search, e.g. "cat" (tap urlbar, type cat, select the first search item)
4. Select urlbar, type "ca"
Expected: search row shows "ca", "@cat" (replace @ with clock icon)
Actual: search row shows "ca" only
| Assignee | ||
Comment 1•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/28561/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/28561/
Attachment #8700062 -
Flags: review?(liuche)
Comment 2•10 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
https://reviewboard.mozilla.org/r/28561/#review25619
::: mobile/android/base/java/org/mozilla/gecko/home/BrowserSearch.java:662
(Diff revision 1)
> + final SharedPreferences prefs = GeckoSharedPrefs.forApp(getContext());
Great, this is exactly what we need to check. Don't put it in setSearchEngines though, because search history should have nothing to do with search engines.
It looks like updateSearchEngines (which calls setSearchEngines) is called in onResume, so we should do this there, because we'll want to check every time we open up search in case that pref has been changed.
Attachment #8700062 -
Flags: review?(liuche)
Updated•10 years ago
|
Attachment #8700062 -
Flags: feedback+
Updated•10 years ago
|
Assignee: nobody → ahunt
| Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28561/diff/1-2/
Attachment #8700062 -
Flags: feedback+ → review?(liuche)
Comment 4•10 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
https://reviewboard.mozilla.org/r/28561/#review25667
::: mobile/android/base/java/org/mozilla/gecko/home/BrowserSearch.java:719
(Diff revision 2)
> + final SharedPreferences prefs = GeckoSharedPrefs.forApp(getContext());
Sorry, I wasn't clear enough - search history should be disjoint from search engines so we should put this in onResume (not in updateSearchEngineBar, or any of the search engine methods).
Attachment #8700062 -
Flags: review?(liuche)
| Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/28561/diff/2-3/
Attachment #8700062 -
Flags: review?(liuche)
Comment 6•10 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
https://reviewboard.mozilla.org/r/28561/#review25693
Attachment #8700062 -
Flags: review?(liuche) → review+
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 8•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Comment 9•9 years ago
|
||
Search for "cat" and after that for "ca", "cat" is displayed as a search history near "ca" in the search row, so:
Verified as fixed using:
Device: Nexus 7 (Android 5.1.1)
Build: Firefox for Android 46.0a1 (2015-01-06)
| Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
Approval Request Comment
[Feature/regressing bug #]: Bug 1200367 - add a separate search history pref
[User impact if declined]: History suggestions aren't shown if search history is enabled but search engine aren't enabled.
[Describe test coverage new/current, TreeHerder]: Manual testing, verified by QA in trunk.
[Risks and why]: Medium risk - a new variable added to track the history preference, which is used when determining whether to process suggestions.
[String/UUID change made/needed]: none
Note: a separate patch is needed for beta, due to path changes, and will be added in the next comment.
Attachment #8700062 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 11•9 years ago
|
||
Here is a separate backport for beta - identical to aurora/trunk except for patch changes.
Approval Request Comment
[Feature/regressing bug #]: Bug 1200367 - add a separate search history pref
[User impact if declined]: History suggestions aren't shown if search history is enabled but search engine aren't enabled.
[Describe test coverage new/current, TreeHerder]: Manual testing, verified by QA in trunk.
[Risks and why]: Medium risk - a new variable added to track the history preference, which is used when determining whether to process suggestions.
[String/UUID change made/needed]: none
Attachment #8705249 -
Flags: approval-mozilla-beta?
status-firefox44:
--- → affected
status-firefox45:
--- → affected
Comment on attachment 8705249 [details] [diff] [review]
history_without_suggestions_beta.patch
This is another key scenario, taking it to Beta44.
Attachment #8705249 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment on attachment 8700062 [details]
MozReview Request: Bug 1233602 - Don't depend on search suggestions to show search history r=liuche
Aurora45+
Attachment #8700062 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•9 years ago
|
||
| bugherder uplift | ||
Comment 15•9 years ago
|
||
| bugherder uplift | ||
status-b2g-v2.5:
--- → fixed
Comment 16•9 years ago
|
||
beta uplift failed:
applying history_without_suggestions_beta.patch
patching file mobile/android/base/home/BrowserSearch.java
Hunk #1 FAILED at 14
Hunk #2 FAILED at 22
Hunk #3 FAILED at 35
Hunk #4 succeeded at 158 with fuzz 2 (offset -1 lines).
Hunk #5 succeeded at 272 with fuzz 2 (offset 2 lines).
Hunk #6 FAILED at 593
4 out of 6 hunks FAILED -- saving rejects to file mobile/android/base/home/BrowserSearch.java.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working directory
errors during apply, please fix and qrefresh history_without_suggestions_beta.patch
Flags: needinfo?(ahunt)
| Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #16)
> beta uplift failed:
>
> applying history_without_suggestions_beta.patch
> patching file mobile/android/base/home/BrowserSearch.java
> Hunk #1 FAILED at 14
> Hunk #2 FAILED at 22
> Hunk #3 FAILED at 35
> Hunk #4 succeeded at 158 with fuzz 2 (offset -1 lines).
> Hunk #5 succeeded at 272 with fuzz 2 (offset 2 lines).
> Hunk #6 FAILED at 593
> 4 out of 6 hunks FAILED -- saving rejects to file
> mobile/android/base/home/BrowserSearch.java.rej
> patch failed, unable to continue (try -v)
> patch failed, rejects left in working directory
> errors during apply, please fix and qrefresh
> history_without_suggestions_beta.patch
It looks like the patch is already in beta (and trying to apply it again gives me the same output as you got):
http://hg.mozilla.org/releases/mozilla-beta/rev/2285043ff5c6
Flags: needinfo?(ahunt)
Comment 18•9 years ago
|
||
Verified as fixed in builds:
- Firefox 44 Beta 8;
- 45.0a2 2016-01-12;
Device: Nexus 5 (Android 6.0.1);
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•