Open Bug 1698980 Opened 4 years ago Updated 4 years ago

Make it easier for dynamic result types to use the built-in result look and selection

Categories

(Firefox :: Address Bar, enhancement, P3)

enhancement
Points:
3

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.

Severity: S3 → N/A
See Also: → 1698998

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.

See Also: → 1699018
Blocks: 1699616
See Also: 1698998, 1699018
You need to log in before you can comment on or make changes to this bug.