Closed
Bug 1216826
Opened 8 years ago
Closed 8 years ago
Search suggestions should not be enabled in private browsing
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox44+ fixed, firefox45 fixed, b2g-v2.5 fixed, fennec44+)
RESOLVED
FIXED
Firefox 45
People
(Reporter: bnicholson, Assigned: psd)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.27 KB,
patch
|
mcomella
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Search suggestions aren't supposed to be shown in private browsing (see bug 965321 for some context). Regression from recent search work?
Reporter | ||
Updated•8 years ago
|
Keywords: regression
Comment 1•8 years ago
|
||
Mike or Sergej, do you know what's going on here?
Flags: needinfo?(sergej)
Flags: needinfo?(michael.l.comella)
Comment 2•8 years ago
|
||
This looks like regression from bug 1186683. mSuggestClient is set in setSearchEngines if the current tab is not private [1]. mSuggestClient is then used in the rest of the class to get the search suggestions provided it's not null, in which case it wouldn't retrieve the suggestions. However, mSuggestClient only gets updated when we set the search engines (which used to be every time BrowserSearch was created and thus shown) – we should be sure to update it every time BrowserSearch is shown. Watch out for bug 1206628 (the patch has not landed yet but is r+) which only calls all of setSearchEngines when there are new search engines. [1]: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/home/BrowserSearch.java?rev=b34903a7c80c#647
Assignee: nobody → michael.l.comella
Blocks: 1186683
Flags: needinfo?(sergej)
Flags: needinfo?(michael.l.comella)
Updated•8 years ago
|
tracking-fennec: ? → 44+
Comment 3•8 years ago
|
||
Are we taking about suggestions from engine or from history? Now suggestions history is always visible. Not sure that this is correct. Suggestions history save is ignored in private mode.
Comment 4•8 years ago
|
||
via irc, Prabhjyot is on this one! Thanks!
Assignee: michael.l.comella → prabhjyotsingh95
Comment 5•8 years ago
|
||
hey psd, mcomella tells me you mentioned having a patch yesterday for this on irc, but I don't see one. How's this going? Are you stuck on anything?
Flags: needinfo?(prabhjyotsingh95)
Assignee | ||
Comment 6•8 years ago
|
||
Hi! In the patch for bug 1207340 (which worked but was plagued with a flicker), I just added a couple of lines of code, to change the mSuggestClient each time, setSearchEngines was called. This would update mSuggestClient to be null for private tabs and hence remove the prompt at the end. Now, as soon as we can remove the flicker problem from bug 1207340, I should be able to produce a patch for this, or maybe even fix this in bug 1207340 itself.
Flags: needinfo?(prabhjyotsingh95)
Comment 7•8 years ago
|
||
This is fixed by the patch in bug 1207340, right? If so, can you dupe this bug to that one?
Flags: needinfo?(prabhjyotsingh95)
Comment 8•8 years ago
|
||
I notice we also have two individual search suggestion preferences now – one for network suggestions and one for search history. Can you be sure to check that both work correctly?
Comment 9•8 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #8) > I notice we also have two individual search suggestion preferences now – one > for network suggestions and one for search history. Can you be sure to check > that both work correctly? I'm assuming that: 1. Suggestions from search engine _should not_ be enabled in private browsing 2. Suggestions from search history _should_ be enabled in private browsing #2 would only use any existing search history, which was saved in non private browsing sessions. Search history is not saved in private browsing so any search terms used in a private browsing session could not appear as suggestions.
Assignee | ||
Comment 10•8 years ago
|
||
So, patch for bug 1207340 did not completely solve this. But this seems to! :)
Flags: needinfo?(prabhjyotsingh95)
Attachment #8691047 -
Flags: review?(michael.l.comella)
Comment 11•8 years ago
|
||
Comment on attachment 8691047 [details] [diff] [review] 1216826.patch I assume that the loader will be around if we switch to a normal tab?
Assignee | ||
Comment 12•8 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #11) > I assume that the loader will be around if we switch to a normal tab? Yes! I have tested it. Jumping between Private and non private tabs, suggestions work when they should.:)
Comment 13•8 years ago
|
||
Comment on attachment 8691047 [details] [diff] [review] 1216826.patch Review of attachment 8691047 [details] [diff] [review]: ----------------------------------------------------------------- Cool and clean solution! I'm slightly concerned about the efficiency vs. re-using the existing Loader, but we don't do an excessive number of allocations and hopefully neither does the framework so this wfm. I don't notice perf issues locally either. btw, sorry for the delay! I should have gotten to this before the holiday.
Attachment #8691047 -
Flags: review?(michael.l.comella) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 15•8 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/3e6dbd0ee282
Keywords: checkin-needed
Comment 16•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3e6dbd0ee282
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Assignee | ||
Comment 17•8 years ago
|
||
Comment on attachment 8691047 [details] [diff] [review] 1216826.patch Approval Request Comment [Feature/regressing bug #]: bug 1186683 [User impact if declined]: User shown suggestions in private browsing, High impact [Describe test coverage new/current, TreeHerder]: Testing Manually, visual testing required [Risks and why]: Low risk - simple change in loader of suggestions [String/UUID change made/needed]: None
Attachment #8691047 -
Flags: approval-mozilla-aurora?
Comment on attachment 8691047 [details] [diff] [review] 1216826.patch Since this is a bad regression, taking it to Aurora44 soon makes sense.
Attachment #8691047 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
status-firefox44:
--- → affected
tracking-firefox44:
--- → +
Ioana, would you be able to verify this fixes the issue as expected? Also a bit of focused testing around search suggestions and search history in regular and private browsing mode will be appreciated as well.
Flags: needinfo?(chiorean.ioana)
Comment 20•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/04630b5647aa
Comment 21•8 years ago
|
||
(In reply to Ritu Kothari (:ritu) from comment #19) > Ioana, would you be able to verify this fixes the issue as expected? Also a > bit of focused testing around search suggestions and search history in > regular and private browsing mode will be appreciated as well. Yes - I am currently in PTO so I will ask someone from the team to look it up.
Flags: needinfo?(chiorean.ioana) → needinfo?(fennec)
Comment 22•8 years ago
|
||
Tested using: Device: Nexus 4 (Android 5.1.1) Build: Firefox for Android 45.0a1 (2015- In normal browsing type some letters in URL Bar and enable search suggestions. Go to private browsing and start typing some letters. Search suggestions are not displayed. While testing this, I found a new issue. Aurora and Nightly are affected. I filled Bug 1230568: In normal browsing start typing in the URL Bar ("br"). Don't choose to turn on/off search suggestions. Go to private browsing and start typing in the URL Bar ("br"). See that no search suggestions are displayed. Now go back to normal browsing and start typing in the URL Bar ("br"). "would you like to turn on search suggestions" message should be displayed. But the message doesn't appear. Only "br" is displayed. As if the user chose to turn off search suggestions.
Comment 23•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/04630b5647aa
status-b2g-v2.5:
--- → fixed
(In reply to Teodora Vermesan (:TeoVermesan) from comment #22) > Tested using: > Device: Nexus 4 (Android 5.1.1) > Build: Firefox for Android 45.0a1 (2015- > In normal browsing type some letters in URL Bar and enable search > suggestions. Go to private browsing and start typing some letters. Search > suggestions are not displayed. > > While testing this, I found a new issue. Aurora and Nightly are affected. I > filled Bug 1230568: In normal browsing start typing in the URL Bar ("br"). > Don't choose to turn on/off search suggestions. Go to private browsing and > start typing in the URL Bar ("br"). See that no search suggestions are > displayed. Now go back to normal browsing and start typing in the URL Bar > ("br"). "would you like to turn on search suggestions" message should be > displayed. But the message doesn't appear. Only "br" is displayed. As if the > user chose to turn off search suggestions. Thanks for the verification and catching this regression. Great work!
Comment 25•8 years ago
|
||
Also I've filled Bug 1232651. On latest Aurora and Nightly - Search suggestions are displayed in private browsing for Twitter default search engine. On 43 Beta 10 search suggestions are not displayed in normal and private browsing after turning on search suggestions.
Flags: needinfo?(fennec)
Updated•3 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
•