[Omnibox] XML-style markup for styling suggest result description is missing
Categories
(WebExtensions :: Frontend, enhancement)
Tracking
(Not tracked)
People
(Reporter: mail, Unassigned)
Details
Attachments
(1 file)
(deleted),
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
Try to customize the Omnibox suggest result with XML-style markup, like in Chromium:
// Consider the input is "chi"
browser.omnibox.onInputChanged.addListener((input, suggest) => {
suggest([{
content: "zh ",
description: "Translate in <url><match>Chi</match>nese (simplified)</url> <dim>(zh)</dim>"
}]);
});
Actual results:
Firefox doesn't understand XML-style markup, and there is no way to style a Suggest Result description...
Expected results:
As in the Chrome documentation, the description would allow XML-style markup:
https://developer.chrome.com/extensions/omnibox
SuggestResult
description
The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. dimmed match. You must escape the five predefined entities to display them as text: stackoverflow.com/a/1091953/89484
Comment 1•6 years ago
|
||
Hi maximelebreton,
Not sure if this issue is a duplicate of Bug 1323091 but I am moving it over a component so the engineering team can take a look at it.
Thanks for your suggested improvement!
Updated•6 years ago
|
Description
•