Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2015-10-15 17:44:10 +0000
committerNiraj Modi2015-10-15 17:44:10 +0000
commit25a92296f43536964e4083540c89b4b94132fec3 (patch)
treedd754c822c8be236fa8062a1afc4778b57e7b981 /bundles/org.eclipse.swt/Eclipse SWT Browser
parent3571b156a6395ed62212ca9dc273c753d386fe40 (diff)
downloadeclipse.platform.swt-25a92296f43536964e4083540c89b4b94132fec3.tar.gz
eclipse.platform.swt-25a92296f43536964e4083540c89b4b94132fec3.tar.xz
eclipse.platform.swt-25a92296f43536964e4083540c89b4b94132fec3.zip
Bug 465822 - [IE]BrowserFunctions doesn't work properly with SWT.NONE
Browser on Windows Change-Id: I04b6427fea18fa85e7bdfd8ff9d78cb7c242f6dc Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
index 312789d79e..e24798e47c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java
@@ -1169,6 +1169,16 @@ static Variant createSafeArray(String string) {
}
public boolean execute(String script) {
+ /*
+ * Issue with IE: If the browser has not shown any content yet then
+ * first navigate to about:blank to work around bug 465822, then execute
+ * the requested script.
+ */
+ if (!performingInitialNavigate && _getUrl().length() == 0) {
+ performingInitialNavigate = true;
+ navigate (ABOUT_BLANK, null, null, true);
+ }
+
/* get IHTMLDocument2 */
int[] rgdispid = auto.getIDsOfNames(new String[] {PROPERTY_DOCUMENT});
int dispIdMember = rgdispid[0];

Back to the top