Add missing Browser#getBrowserType method

Bug 561299: java.lang.NoSuchMethodError:
org.eclipse.swt.browser.Browser.getBrowserType()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=561299

Change-Id: I161b6310b0db91a9f557ab135c24b6dff3776fc4
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/browser/Browser.java
index 0aa34c3..d0e4148 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/browser/Browser.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/browser/Browser.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2002, 2016 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2020 Innoopract Informationssysteme GmbH and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -511,6 +511,18 @@
     return null;
   }
 
+  /**
+   * Returns the type of native browser being used by this instance.
+   *
+   * @return the type of the native browser
+   *
+   * @since 3.13
+   */
+  public String getBrowserType() {
+    checkWidget();
+    return "iframe";
+  }
+
   private static int checkStyle( int style ) {
     int result = style;
     if( ( style & ( SWT.MOZILLA | SWT.WEBKIT ) ) != 0 ) {
diff --git a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/browser/Browser_Test.java b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/browser/Browser_Test.java
index acabb68..3d54a44 100644
--- a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/browser/Browser_Test.java
+++ b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/swt/browser/Browser_Test.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2002, 2016 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2020 Innoopract Informationssysteme GmbH and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -333,6 +333,11 @@
   }
 
   @Test
+  public void testGetBrowserType() {
+    assertEquals( "iframe", browser.getBrowserType() );
+  }
+
+  @Test
   public void testIsSerializable() throws Exception {
     browser.setUrl( "http://eclipse.org/rap" );