title: How open a popup.html without new tab?
body: <p>I have a extension example, and popup window is opened as new tab.</p>
  
  <p>So, now I want open this popup window in same Chrome active tab like this:</p>
  
  <p><a href="https://i.stack.imgur.com/tQB33.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tQB33.gif" alt="enter image description here"></a></p>
  
  <p>I already have tried several way, but without success until now.</p>
  
  <p><strong>PS:</strong> I'm using Google Chrome V.50</p>
  
  <p>Here is code that open my popup in a new tab:</p>
  
  <p><strong><em>manifest.json</em></strong></p>
  
  <pre><code>{  
      "background": {
      "scripts": ["action.js"],
      "persistent": false
  },
  
      "name": "W3C cheatsheet",
      "version": "0.1",
      "manifest_version": 2,
      "description": "Show the W3C cheatsheet on a popup",
  
      "icons": { "48": "favicon.png" },
  
      "browser_action": {
  
              "default_icon": "favicon.png"
  
      },
      "permissions": ["http://*/", "tabs"]
  }
  </code></pre>
  
  <p><strong><em>action.js</em></strong></p>
  
  <pre><code>chrome.browserAction.onClicked.addListener(function(tab) {
      chrome.tabs.create({'url': chrome.extension.getURL('w3c.html'), 'selected': true});
  });
  </code></pre>
  
  <p><strong><em>popup.html</em></strong>  (<em>w3c.html</em> in this case)</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  &lt;/script&gt;
  &lt;style&gt;* {margin: 0; padding: 0; border: 0;}&lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;iframe src="https://www.w3.org/2009/cheatsheet/" width="450" height="500"&gt;&lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>