Make it easier for dynamic result types to use the built-in result look and selection
Categories
(Firefox :: Address Bar, enhancement, P3)
Tracking
()
People
(Reporter: adw, Unassigned)
References
(Blocks 1 open bug)
Details
Daisuke is adding a unit converter result type in bug 1697722. It looks just like typical built-in results, and selection behaves the same, but he has to specify a view template that more or less matches the typical result DOM structure.
It would be nice if you could do something like pass in a null view template to get the typical DOM and selection. View update objects might still be necessary, but we could probably make them optional too by recognizing typical payload properties.
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Comment 1•4 years ago
|
||
Another point: The unit conversion result has some action text, but just creating the appropriate DOM with a .urlbarView-action
element doesn't work because there's no way to set the has-action
attribute on the row or hook into any of the other usual row updates in _updateRow
. So he has to copy and paste all the action-related CSS.
Reporter | ||
Updated•4 years ago
|
Description
•