How to position the icon in a specific location in the address bar

The extension’s icon appears always in the top right corner of the toolbar.

I need to place my tool’s icon near the pad lock icon in the address bar as shown in the image below.

drawing

There is a legacy extension (not written in Webextension API so I can not really learn from it) that placed it somewhat near the padlock icon but not exactly (I need it in the exclamation mark position).
legacy

My question is: how to place the extension’s icon just next to the padlock icon (preferably to the left instead of the exclamation mark but if not possible the to the right or same is the legacy extension example).

I am afraid such specific positioning is not possible anymore.
The best you can do these days is add a pageAction on the right part of Location Bar:

1 Like