Add support for DescriptionStyleType

NEW
Unassigned

Status

()

Toolkit
WebExtensions: Frontend
P2
normal
4 months ago
27 days ago

People

(Reporter: mattw, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: triaged[omnibox])

(Reporter)

Description

4 months ago
This property allows descriptions to have very simple markup defined using XML. The supported tags are "url", "match", and "dim".

"url" - give the text a blue URL appearance
"match" makes the text bold
"dim" - makes the text grey.

Aside from the "url" tag, which always takes precedence, nested tags should inherit properties from their parents. For example, if the description is "<dim><match>search</match> <url>www.mozilla.org</url></dim>", "search" should be grey and bold, while "www.mozilla.org" should only appear like a URL and not inherit the properties from "dim".

Valid but unrecognized tags should be ignored. If the XML is malformed an informative error should be thrown.

Updated

4 months ago
Whiteboard: triaged
(Reporter)

Updated

27 days ago
webextensions: --- → ?

Updated

27 days ago
webextensions: ? → ---
Whiteboard: triaged → triaged[omnibox]
You need to log in before you can comment on or make changes to this bug.