function handleCreated(changeInfo) {
console.log(`Created: ${changeInfo.contextualIdentity.name}`);
}
browser.contextualIdentities.onCreated.addListener(handleCreated);contextualIdentities.onCreated / notebook
contextualIdentities.onCreated
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.