function gotSelf(info) {
console.log(`Add-on name: ${info.name}`);
}
const gettingSelf = browser.management.getSelf();
gettingSelf.then(gotSelf);management.getSelf() / notebook
management.getSelf()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.