title: GWT open page in a new tab
body: <p>I am developing GWT application and I use </p>
  
  <pre><code>com.google.gwt.user.client.Window.open(pageUrl, "_blank", "");
  </code></pre>
  
  <p>to open new page. And it opens in a new tab when called, for example, directly after button click.
  But I decided to do some validations on server before opening new page and placed the call to the mentioned above method to the </p>
  
  <pre><code>public void onSuccess(Object response) {
  }
  </code></pre>
  
  <p>And it starts to open pages in new window instead of new tab (this is true only for Chrome, other browsers still open it in a new tab).</p>
  
  <p>Can anybody help me?</p>
  
  <hr>
  
  <p>I built a small example to illustrate the issue:</p>
  
  <pre><code>    button.addClickHandler(new ClickHandler() {
          public void onClick(ClickEvent event) {
              Window.open("http://www.google.com/", "_blank", "");
              MySampleApplicationServiceAsync serviceAsync = GWT.create(MySampleApplicationService.class);
              serviceAsync.getMessage("Hello, Server!", new AsyncCallback() {
  
                  public void onFailure(Throwable caught) {
                      Window.alert("ERROR");
                  }
  
                  public void onSuccess(Object result) {
                      Window.open("http://www.bing.com/", "_blank", "");
                  }
              }
              );
          }
      });
  </code></pre>
  
  <ul>
  <li>Firefox(3.6.8) opens both pages in new tabs.</li>
  <li>Chrome(6.0) opens "google.com" in new tab and "bing.com" in new window</li>
  <li>Opera(10.10) opens in new tabs.</li>
  <li>IE(8.0) opens both in new Windows.</li>
  </ul>
  
  <hr>
  
  <p>I marked igorbel 's answer as the only correct cos I haven't found any proper way to specify the same behaviour in all situations.</p>
  
  <hr>