Take out of container the groups whose action permits refuses, the containers left empty,
and the separators that no longer separate anything. Removed rather than hidden: the host's own
hide/disable keys are applied afterwards (_apply_toolbar()) and would undo a display:none they
did not set.
Answers the names of the groups taken out, so the caller can let go of the controls that lived
in them: a control object outliving its DOM is called later and throws (Popupmenu.setTitle()).
Take out of
containerthe groups whose actionpermitsrefuses, the containers left empty, and the separators that no longer separate anything. Removed rather than hidden: the host's own hide/disable keys are applied afterwards (_apply_toolbar()) and would undo a display:none they did not set.Answers the names of the groups taken out, so the caller can let go of the controls that lived in them: a control object outliving its DOM is called later and throws (Popupmenu.setTitle()).