Closed Bug 1912045 Opened 2 years ago Closed 2 years ago

Autofill for search restrict keywords

Categories

(Firefox :: Address Bar, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: mcheang, Assigned: mcheang)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Description

  • Add autofill functionality to UrlbarProvider Restrict Keywords.

Acceptance Criteria

  • There are 3 restrict keywords @history, @bookmarks, and @tabs
  • When the user types @ followed by the beginning of the search keyword: @h, @hi, @his, @hist etc. the user should be able to autofill the rest of the search by pressing tab
  • The autofill should highlight the typed letters from the user, and show the entire keyword following what the user typed. For example:
  • If the user typed @hist , autofill should highlight what the user typed and show the rest of the keyword @history:

Example steps to test @history :

  • set browser.urlbar.searchRestrictKeywords.featureGate to true
  • type out the full keyword and space @history , address bar should show results panel with history results
  • type @h and press right arrow, shows results panel with history results
  • type @h and press enter, shows results panel with history results
    - type @h and press tab, does not show panel but selects the history restrict result. When the user starts typing, it will search their history and show results panel with history results This behaviour changed in Bug 925532. Type @h and press tab, shows results panel with history results
Pushed by mcheang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5cff57b6b5a2 Autofill for intuitive search keywords. r=daleharvey,urlbar-reviewers,mak
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch

Hy Mandy!
I have a question regarding the autofill functionality.

The current behavior for autofill is that if a keyword is partially inserted in the urlbar ( eg. @h ) and then pressing TAB key, the results panel is now automatically displayed without any additional input.

Could you please confirm if the autofill behavior for restrict keywords has changed?
Thank you.

Flags: needinfo?(mcheang)

Hi Ardelean,

Yes, this is the intended behaviour now.
The bug that changed this is Bug 925532

Flags: needinfo?(mcheang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: