browser.windows.getLastFocused().then((windowInfo) => {
console.log(`Window is private: ${windowInfo.incognito}`);
});incognito / notebook
incognito
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
fetch(url, {
credentials: "omit",
cache: "no-cache",
});