Closed Bug 1912045 Opened 2 months ago Closed 2 months 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
Blocks: 1893749
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 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: