Is it possible to make use of Firefox's internal icons?

For example I want to use the home icon in one of my extension’s menu commands, something like this:

browser.menus.create({ 
  icons: { 16: 'chrome://.../home.svg' },
});

If so, does a reference for the icon pathnames exist?

The access to those icons is often restricted, see for example:

It’s best to use your own icons.

If you are looking for a good source of icons, check Font Awesome for the basic list and Flaticon for extensive list. Both have free/payed options.

1 Like

Thanks for the reply. Thought it could be DRYer if it were possible, oh well.

Anyway I normally get Firefox’s svg icons from here https://acorn.firefox.com/latest/styles/iconography-q7JqGl5H, if anyone wants to know.

2 Likes