summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2004-06-17 22:41:07 +0000
committerChristophe Cornu <ccornu>2004-06-17 22:41:07 +0000
commit3aeeb62a9a89bf6bc241d94b83862705680a8e80 (patch)
tree803fa888d60e2e66b4ceb747572b67db0e8260ca
parente36035849ac2556290e87c83946714f22ca3c87b (diff)
downloadeclipse.platform.swt-3aeeb62a9a89bf6bc241d94b83862705680a8e80.tar.gz
eclipse.platform.swt-3aeeb62a9a89bf6bc241d94b83862705680a8e80.tar.xz
eclipse.platform.swt-3aeeb62a9a89bf6bc241d94b83862705680a8e80.zip
66813
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/Browser.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/Browser.java
index 0b3ab2a734..61f06833a4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/Browser.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/Browser.java
@@ -1250,16 +1250,14 @@ public boolean setText(String html) {
nsIWebNavigation webNavigation = new nsIWebNavigation(result[0]);
/*
- * Note. Stop any pending request that uses the html content. This is required
- * to avoid displaying a blank page as a result of consecutive calls to
- * setText. The previous request would otherwise render the new html content
- * and reset the html field before the browser actually navigates to the blank
+ * Note. Stop any pending request. This is required to avoid displaying a
+ * blank page as a result of consecutive calls to setUrl and/or setText.
+ * The previous request would otherwise render the new html content and
+ * reset the html field before the browser actually navigates to the blank
* page as requested below.
*/
- if (this.html != null) {
- rc = webNavigation.Stop(nsIWebNavigation.STOP_ALL);
- if (rc != XPCOM.NS_OK) error(rc);
- }
+ rc = webNavigation.Stop(nsIWebNavigation.STOP_ALL);
+ if (rc != XPCOM.NS_OK) error(rc);
this.html = html;
char[] arg = "about:blank".toCharArray(); //$NON-NLS-1$
char[] c = new char[arg.length+1];