In Bug 1741545 we introduced a new row to the addon details card which is used by the addon type "sitepermission" but it should have been actually:
- hidden when the addon card is associated to any other addon type
- and the custom element setAddon method shouldn't be called for any other addon type.
From a user perspective the addon card is still working as expected, besides a small regression from a visual perspective due to an additional empty row (see the attached screenshot).
Besides that, a fluent warning is rendered in the webconsole, triggered when the custom element setAddon method is being called, due to the fact that for any other addon type but the "sitepermission" ones the argument that the fluent string is expecting is undefined:
[fluent][resolver] errors in en-US/addon-sitepermissions-required: Resolver error: Unknown variable: $hostname
As a side note:
- in some of the AOM mochitest-browser tests the fluent warning seems to also have the side-effect of preventing some of the other localized strings used in about:addons from rendering as expected, which doesn't seem to be happening when the same warning is emitted when manually opening about:addons as a user.
- fixing the fluent warning (by only calling the custom element setAddon method for add-ons with type "sitepermission") seems to fix the missing localized strings in those mochitest-browser tests