function onGot(icons) {
for (const { icon, iconUrl } of icons) {
console.log(`${icon}: ${iconUrl}`);
}
}
function onError(error) {
console.error(error);
}
browser.contextualIdentities.getSupportedIcons().then(onGot, onError);contextualIdentities.getSupportedIcons() / notebook
contextualIdentities.getSupportedIcons()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.