Search Tips shownCount prefs are set incorrectly
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox73 | --- | unaffected |
| firefox74 | --- | verified |
| firefox75 | --- | verified |
People
(Reporter: bugzilla, Assigned: bugzilla)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
|
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
Bug 1613855 erroneously sets the prefs searchTips.(type).shownCount rather than browser.urlbar.searchTips.(type).shownCount, meaning that shownCount will not be meaningfully recorded. This should be corrected and uplifted to beta.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
I should point out that the correct pref is set to MAX_SHOWN_COUNT when the user engages with Search Tips, so this is not a case of there being no way to permanently dismiss them. The bug is that a user can ignore Search Tips an unlimited number of times and they will continue to show. Still something we should fix and uplift ASAP.
Comment 4•6 years ago
|
||
Does this mean we have no automated test checking the count is increased properly?
It may be be worth adding one in a follow-up.
| Assignee | ||
Comment 5•6 years ago
|
||
We point out that we don't test that feature because it would require a restart. That said, we could use the pref in bug 1614651 to disable the showedTipInCurrentSession flag and test that the count is increasing.
Comment 6•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
| Assignee | ||
Comment 7•6 years ago
|
||
Comment on attachment 9125826 [details]
Bug 1614656 - Set Search Tips shownCount prefs correctly. r?adw!
Beta/Release Uplift Approval Request
- User impact if declined: Annoying behaviour with the Urlbar's new Search Tips feature: the user can ignore them any number of times and they will continue appearing once per session. Note the user would still be able to permanently dismiss them by interacting with the Search Tip.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: It's easiest to first import the patch currently up for review at https://phabricator.services.mozilla.com/D62437, or to wait for it to land. That will add a hidden pref
browser.urlbar.searchTips.test.disableChecksthat will make Search Tips appear every time a new tab or the user's default search engine homepage is opened.
Once that patch is included:
0. Open Firefox with a fresh profile and set the hidden pref browser.urlbar.searchTips.test.disableChecks to true.
- Observe the prefs
browser.urlbar.searchTips.onboard.shownCountandbrowser.urlbar.searchTips.redirect.shownCountdo not exist. - Open about:newtab. Observe that a Search Tip is shown in the Urlbar.
- Observe that the pref
browser.urlbar.searchTips.onboard.shownCountnow has a value of 1. - Ensure the default search engine is Google and open google.com. Observe that a Search Tip is shown in the Urlbar.
- Observe that the pref
browser.urlbar.searchTips.redirect.shownCountnow has a value of 1.
- List of other uplifts needed: Bug 1615276
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This patch changes the name of a pref being recorded from
searchTips.onboard.shownCountandsearchTips.redirect.shownCounttobrowser.urlbar.searchTips.onboard.shownCountandbrowser.urlbar.searchTips.redirect.shownCount. Worst case is that this patch sets the wrong pref name again and we're in the same place we were in without this patch.
It's covered by an automated test, added in bug 1615276, which I've requested be uplifted as well.
- String changes made/needed:
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 8•6 years ago
|
||
I've landed the hidden pref mentioned in the STR. It's bug 1614651 and should be in Nightly soon. The final pref name is browser.urlbar.searchTips.test.ignoreShowLimits.
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Comment on attachment 9125826 [details]
Bug 1614656 - Set Search Tips shownCount prefs correctly. r?adw!
Visible UX bug on a new feature, uplift approved for 74?0b5, thanks.
Comment 10•6 years ago
|
||
| bugherder uplift | ||
Comment 11•6 years ago
|
||
We have to postpone verifying this issue to early next week due to the lack of context on "Search Tips" and the fact that Search Tips is now blocking the QuantumBar Design 1 release.
I am going to needinfo myself as a reminder.
Comment 12•6 years ago
|
||
I can confirm the fix.
I verified using Fx 74.0b7, Fx 75.0a1, on Windows 10 x64, macOS 10.15 and Ubuntu 18.04.
Updated•6 years ago
|
Description
•