Closed Bug 1506332 Opened 7 years ago Closed 7 years ago

call omnibox.setDefaultSuggestion() without defining a keyword

Categories

(WebExtensions :: Frontend, enhancement)

Desktop
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: lolipopplus, Unassigned)

Details

Firefox awesome bar autocomplete feature now requires a special characters that are hard to memorize for users. I am trying to create an add-on with a page action popup that has several buttons. When users click, lets say clicking `Search by tab title` for example, I expect to call omnibox.setDefaultSuggestion() to apply a # in address bar. Per API docs at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/omnibox I have to use a keyword. But can I call it without keyword?
Something like this was previously discussed and declined, you can read the detailed reasoning in the duplicate bug.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
(In reply to Andrew Swan [:aswan] from comment #1) > Something like this was previously discussed and declined, you can read the > detailed reasoning in the duplicate bug. I believe it is not. bug 1385596 is to do much more complicate than I request here: I am to only adding specific characters pre-defined in Firefox and only add them at the very beginning. Nothing more than that.
Status: RESOLVED → UNCONFIRMED
Flags: needinfo?(aswan)
Resolution: DUPLICATE → ---
You didn't actually ask a question when you set needinfo? In any case, the omnibox API is deliberately designed to make it clear to users when an extension is controlling (some aspect of) what they see in the awesome bar. If you want to propose something different, you need to make a concrete and specific proposal and ideally, explain how the browser would make it clear to users when and how extensions are using the API to affect the awesome bar suggestions.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago7 years ago
Flags: needinfo?(aswan)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.