title: 2019 - Close tab after php script executed (Chrome)
body: <p>I found a lot of questions dealing with this, but most are from 2012 or before and there seems to be new security policies by Google, hence the question here in 2019.</p>
  
  <p>My Chrome extension is opening up a new tab and navigates to a website with several PHP variables in tow. Once the site is opened, my PHP script does its magic, and once done, I would like to close the tab.</p>
  
  <p>Now here's the problem:</p>
  
  <ol>
  <li>Chrome Dev Kit throws an error saying "scripts may only close windows that it opened up"</li>
  <li>My extension runs on JS and I dont think it can close tabs (or least I dont know how)</li>
  <li>all the PHP side <code>echo '&lt;script&gt;setTimeout(function(){ window.close();}, 5000);&lt;/script&gt;';</code> solutions dont work because of the updated security policies</li>
  </ol>
  
  <p>Now, how would one go about this?</p>
  
  <p>Thanks,
  A2k</p>