Closed
Bug 1498023
Opened 6 years ago
Closed 6 years ago
Search shortcuts should hide all one-off UI when typed
Categories
(Firefox :: Address Bar, defect, P1)
Firefox
Address Bar
Tracking
()
VERIFIED
FIXED
Firefox 65
People
(Reporter: mconnor, Assigned: adw)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
46 bytes,
text/x-phabricator-request
|
Details | Review | |
20.12 KB,
patch
|
RyanVM
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Clicking a Search Shortcut and typing the equivalent keyword do not behave consistently. The one-off UX should not be shown if we're already in a one-off mode.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
So... the one-off UI should disappear and reappear as you're typing search aliases? Like:
@b -- one-off ui still there
@bi -- still there
@bin -- yep, still there
@bing -- oh hey now it's gone
*backspace*
@bin -- there it is again
@bing -- and gone
Although now that we autofill aliases, it's more like:
@b -> @bing -- gone
*backspace*
@bin -- back
@bing -- gone
?
Flags: needinfo?(mverdi)
Comment 2•6 years ago
|
||
No - the one-off UI should go away once you type "@" (which should show a list of @engines) and should stay that way as long as "@" is the first character. If you backspace the "@" away the dropdown also goes away. If you then start typing a naked search term or url the dropdown with the one-off UI comes back.
This is how it works if you click the top site search shortcut:
1. Click @amazon top site
2. @amazon gets filled in the address bar and the one-off UI is removed from the dropdown.
3. Delete some characters so you have "@amaz" for example and the one-off UI is still gone.
4. Delete everything and the dropdown closes.
5. Type something else - "telescope" for example and the one-off UI is shown again.
Flags: needinfo?(mverdi)
(In reply to Verdi [:verdi] from comment #2)
> No - the one-off UI should go away once you type "@" (which should show a
> list of @engines) and should stay that way as long as "@" is the first
> character. If you backspace the "@" away the dropdown also goes away. If you
> then start typing a naked search term or url the dropdown with the one-off
> UI comes back.
Sorry but then what happens with user defined keywords that don't begin with `@`? Like https://i.imgur.com/wvxKcvY.png
Comment 4•6 years ago
|
||
(In reply to Bruce from comment #3)
> Sorry but then what happens with user defined keywords that don't begin with
> `@`? Like https://i.imgur.com/wvxKcvY.png
I think we'll have to let those work the way they always have for now - the one-off UI will show.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → adw
Priority: P3 → P1
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Verdi [:verdi] from comment #2)
This works pretty well in practice IMO, in the patch I have. Thumbs up!
Assignee | ||
Comment 6•6 years ago
|
||
* Get rid of the browser.urlbar.oneOffSearches pref to make this patch a little more sane. It was only supposed to be temporary; see bug 1292511.
* Disable or enable the one-offs per each new search based on whether the first char is "@". The patch does this in `onResultsAdded`, where other per-search initialization happens.
* Move the urlbar's one-off UI initialization from a popupshowing listener added in the input constructor to `openAutocompletePopup` in the popup binding. The initialization can happen internally to the popup; also, it needs to know whether someone else has initialized the one-offs first so that it doesn't (re)enable them when someone else first disabled them. That's the case when you open a new window and type "@" first thing: First `oneOffSearchesEnabled = false` gets set in `onResultsAdded`, and then the popup is opened.
* Remove the `disableOneOffButtons` option from the urlbar `search` method. It's not necessary anymore now that one-offs are automatically hidden for the only caller that uses this option (new tab with the "@engine" tiles).
* Make the `oneOffSearchesEnabled` getter return the actual status of the one-off UI instead of relying on an `_oneOffSearchesEnabled` property.
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Pushed by dwillcoxon@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cd201908c7d
Search shortcuts should hide all one-off UI when typed r=mak,Mardak
Comment 11•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Assignee | ||
Comment 12•6 years ago
|
||
STR for QA:
Please see comment 2 for one set of STR. The @amazon top site is on the new tab page.
For another set of STR, please follow the STR in comment 2 again, but in step 1, instead of clicking the @amazon top site, type @amazon directly in the urlbar. With each character of @amazon that you type, including the "@", the one-off UI should not be shown.
Flags: qe-verify+
Flags: in-testsuite+
Assignee | ||
Comment 13•6 years ago
|
||
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Not a regression but improvement to search shortcuts in the awesomebar: see bug 1496772
User impact if declined: We've landed a group of improvements to search shortcuts in 64 (see bug 1496772) and want this bug to make it too
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: Please see comment 12
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): Affects only the @search shortcuts feature, covered by automated tests and manual testing, and it's early in the cycle
String changes made/needed: None
Attachment #9020966 -
Flags: approval-mozilla-beta?
Comment 14•6 years ago
|
||
Hi, I can Confirm this issue as fixed in Nightly 65.0a1 (2018-10-29), I will mark this issue accordingly.
Comment 15•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/09409bf0814ea3add30fe2a220595460d7b71993
Backport Bug 1498023 - Search shortcuts should hide all one-off UI when typed r=mak,Mardak
Comment 16•6 years ago
|
||
Comment on attachment 9020966 [details] [diff] [review]
Beta/64 patch
[Triage Comment]
Fix which complements other search shortcuts improvements shipping in Fx64. Approved for 64.0b6.
Attachment #9020966 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 17•6 years ago
|
||
bugherder uplift |
status-firefox64:
--- → fixed
Comment 18•6 years ago
|
||
Verified this bug using Firefox 64.0b7 on the following OSes: Windows 7x86, Windows 10x64, Ubuntu 18.04 x64 and macOS 10.14. I have followed the STR from Comment 2.
You need to log in
before you can comment on or make changes to this bug.
Description
•