Similar to the Manage/Remove/Report actions in the (context) menu, we close the unified extensions panel when clicking "Pin to toolbar". This will also prevent the panel to be empty when there is only one extension listed and we decide to pin it to the toolbar. Differential Revision: https://phabricator.services.mozilla.com/D162414