Adding InfoBar to Message displayed

I am trying to add a InfoBar with security relevant information to the displayed Message.

As XUL is only available via legacy mode, I am wondering how I am supposed to add the status bar? I would like to add it on the botton of the hbox#msgHeaderView.

Is it even possible without XUL? Where can I find more information…