let id = "my-add-on";
function gotWarnings(warnings) {
for (const warning of warnings) {
console.log(warning);
}
}
browser.management.getPermissionWarningsById(id).then(gotWarnings);management.getPermissionWarningsById() / notebook
management.getPermissionWarningsById()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.