title: window.open not working as expected on iPad Safari
body: <p>I have the following code for share link feature:</p>
  
  <pre><code>  longurl = "www.google.com"
    var newWin = window.open('', share_win_name, 'width=826,height=836')
    gapi.client.load('urlshortener', 'v1', function() {
      var request = gapi.client.urlshortener.url.insert({
          'resource': {
              'longUrl': longurl
          }
      });
      var resp = request.execute(function(resp) {
        if (resp.error) {
          newWin.location = share_link + encodeURIComponent(longurl)
        } else {
          newWin.location = share_link + encodeURIComponent(resp.id)
        }
      });
    });
  </code></pre>
  
  <p>This code works on desktop. But on ipad safari </p>
  
  <ul>
  <li>a blank new tab is opened with nothing on it</li>
  <li>When I go to some other tab and come back to this tab, then I see NEW WINDOW being 
  refreshed/reloaded</li>
  </ul>
  
  <p>I believe its an issue as I try to first open a blank window and then update with the link information.</p>
  
  <p>What is the solution?</p>