title: Chrome: window.open opens new tab instead of new popup window
body: <p>I have this snippet:</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;a href="#" class="option-link" data-url="https://www.google.com"&gt;CLICK ME&lt;/a&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var popup = undefined;
  
  // Option links toggle
  $('.option-link').on('click', function (e) {
  
      e.preventDefault();
  
      var url = $(this).data('url');
  
      if (typeof url !== 'undefined' &amp;&amp; url) {
  
          function __popup_open(link) {
              return window.open(
                  link, 
                  'same_window',
                  'width = 940, height = 620, toolbar = 0, menubar = 0, location = 1, status = 1, scrollbars = 0, resizable = 0, left = 0, top = 0'
              );
          }
  
  
          if (typeof popup == 'undefined' || popup.closed) {
  
              popup = __popup_open(url);
  
          } else {
  
              popup.close();
              popup = __popup_open(url);
          }
  
          popup.focus();
      }
  
  });
  </code></pre>
  
  <p>Running the script on old version of chrome from v58 (58.0.3029.110) backwards will give the right behaviour of opening a new popup window.</p>
  
  <p>But after I updated my browser to v59 (59.0.3071.104), instead of opening a popup window, it opens a new browser tab.</p>
  
  <p>Is this an issue from the browser itself? Or something in my code makes it not work same provided that the only change here is the browser version.</p>
  
  <p><strong>PS</strong>
  Trying this snippet to mozilla works correctly.</p>