title: Creating a temporary tab without adding it to history or sessions in a Chrome extension
body: <p>I'm creating a tab that should be temporary and shouldn't show up in history or recently closed tabs; I can't use popups for this because of <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=436489" rel="nofollow">Chrome bug 436489</a>, because the tab needs to be opened programmatically. I also can't use content scripts, since that would exclude <code>chrome://</code> tabs. I've tried to remove the temporary tab from history like this:</p>
  
  <p><code>chrome.history.onVisited.addListener(({url}) =&gt; {
    if (url.startsWith(temporary))
      chrome.history.deleteUrl({url})
  })
  </code></p>
  
  <p>But it doesn't work because of <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=395955" rel="nofollow">Chrome bug 395955</a>, and even if it worked, it would still be saved in <code>chrome.sessions</code>, and there's no API to remove it from there. Is there no other way to create a temporary page in Chrome that could be opened and closed programmatically?</p>