Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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