browserAction does not show icon.

111 views
Skip to first unread message

Stephane Saux

unread,
Jan 31, 2021, 11:51:44 PM1/31/21
to Chromium Extensions
So I'd like to have an icon show to the right of the URL bar. The documentation seems pretty straightforward: use browserAction. Except that following the steps does not work.
I tried to load the unpacked extensions from thew doc's samples (all the ones that use browserAction: for example: https://github.com/GoogleChrome/chrome-extensions-samples/tree/master/api/browserAction/print)
But the icon does not show. It actually only show if you attempt to remove the unpacked extension while it's asking you to confirm whether to remove it.) I get the same behavior when adding similar code to may extension.
So there must be  something not documented that must be done.

Jackie Han

unread,
Feb 1, 2021, 12:45:03 AM2/1/21
to Stephane Saux, Chromium Extensions

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/18d02d1b-31c0-4ea3-ab28-7e96850ad109n%40chromium.org.


--
Jackie Han

wOxxOm

unread,
Feb 1, 2021, 9:18:47 AM2/1/21
to Chromium Extensions, stepha...@gmail.com
Chrome shows extensions inside the new menu with a puzzle piece icon. Click it, then click the pin icon to the right of your extension. Chromium developers keep being obstinately unreasonable and refuse to accept the fact that their decision to hide extension icons there by default is confusing for a lot of users.

Jackie Han

unread,
Feb 1, 2021, 10:45:01 AM2/1/21
to wOxxOm, Chromium Extensions, stepha...@gmail.com
Well, I usually think that this only affects extension users. I didn’t expect that extension developers would also misunderstand 😂

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.


--
韩国恺(Jackie)

Shu

unread,
Feb 1, 2021, 10:56:59 AM2/1/21
to Chromium Extensions, Jackie Han, Chromium Extensions, stepha...@gmail.com, wOxxOm
This part makes me angry a lot, I open a new page where explain to user where to find an extension and still get emails and bad reviews "extension not visible after I install it"...

Also, it was so easy to move extensions away just by dragging them left and right... One of the worst updates :) users don't see them, it's also not secure, user can install it and forget that he has it... cause it is not visible

Stephane Saux

unread,
Feb 1, 2021, 12:06:29 PM2/1/21
to wOxxOm, Chromium Extensions
I'll admit that I didn't click on the puzzle piece, which may point to a shortcoming to how it messages to the user (its tooltip says "Extensions", maybe "All enabled extensions" might have made me  try it.) It sure would have helped if disabling extensions, which removes their icon from the list, would also have surfaced the icon for the one that I just added, but it doesn't. One can understand that chromium would limit the number of icons shown at any given time and provide the puzzle piece to support overflow, but if disabling extensions removes their icon, it should really be the case that if other extensions are available, then one of them should be selected to replace the disabled extension. As it is the UX only provides only half of the feedback a reasonable user might expect as he's enabling/disabling. I note that if the icon for an extension was showing, and you disable the extension, the icon disappear, and if you enable it it re-appears, but not so for the one that I just added.

Finally: I surmised that if I quit chrome, and restarted it, then the new set of icons (only those enabled) would show up. But no, that doesn't work either. So there appear to be a pre-approved set of extension for which the icon shows, and the rest only shows in the overflow popup. And if, after restarting chrome, I re-enable the extensions that did show when enabled but do not show since I disable them, then they re-appear. So they're special in some  way. After restarting chrome, with some extensions disabled, the print this page extension still only shows in the overflow popup:
Screen Shot 2021-02-01 at 9.00.40 AM.png
I then re-enable some extensions, they are promoted to outside of the overflow:
Screen Shot 2021-02-01 at 9.05.41 AM.png


--
-----------------------
Stephane Saux
-----------------------

Kent Brewster

unread,
Feb 1, 2021, 12:10:51 PM2/1/21
to Simeon Vincent, Chromium Extensions, Shu
More low-hanging fruit for the extension store designers: there should be an easy way for a developer to say "This review isn't relevant because the user is confused about Chrome hiding all the toolbar buttons behind the puzzle piece" and have it removed, or at least not counted towards an average rating.

--Kent

Stephane Saux

unread,
Feb 1, 2021, 12:11:36 PM2/1/21
to wOxxOm, Chromium Extensions
Ooh, there's a "pin" menu, and  it does what's needed. Is that something that an extension developer can do? And if you know to do a search for extension browser_action pin, you do find something, but not in the chromium developer doc. https://www.howtogeek.com/683099/how-to-pin-and-unpin-extensions-from-the-chrome-toolbar/
How did these extensions get pinned? Maybe I did it, but I have no recollection of doing so.
Reply all
Reply to author
Forward
0 new messages