Closed Bug 1525545 Opened 6 years ago Closed 6 years ago

[Omnibox] XML-style markup for styling suggest result description is missing

Categories

(WebExtensions :: Frontend, enhancement)

65 Branch
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1323091

People

(Reporter: mail, Unassigned)

Details

Attachments

(1 file)

Attached image screenshot-2.png (deleted) —

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

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!

Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Component: Untriaged → Frontend
Ever confirmed: true
Product: Firefox → WebExtensions
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: