function onDeleteAll() {
console.log("Deleted all history");
}
function deleteAllHistory() {
let deletingAll = browser.history.deleteAll();
deletingAll.then(onDeleteAll);
}
deleteAllHistory();history.deleteAll() / notebook
history.deleteAll()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.