diff options
author | Grant Gayed <ggayed> | 2009-05-07 17:28:02 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2009-05-07 17:28:02 +0000 |
commit | f2005c59cbc86044bdfae20c23611b48ea4f9b58 (patch) | |
tree | ad6c29ab8830b3457b839842c3b0fd744829da8d | |
parent | 22e21dcd874408f0f998ca6e28b9f1308d6cbdb3 (diff) | |
download | eclipse.platform.swt-f2005c59cbc86044bdfae20c23611b48ea4f9b58.tar.gz eclipse.platform.swt-f2005c59cbc86044bdfae20c23611b48ea4f9b58.tar.xz eclipse.platform.swt-f2005c59cbc86044bdfae20c23611b48ea4f9b58.zip |
269198 - Cannot register a function for the whole browser's lifetime
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java index a035a670eb..27ff637845 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java @@ -324,9 +324,7 @@ public void createFunction (BrowserFunction function) { buffer.append (function.name); buffer.append (";} catch (e) {} };"); //$NON-NLS-1$ function.functionString = buffer.toString (); - if (!execute (function.functionString)) { - deregisterFunction (function); - } + execute (function.functionString); } void deregisterFunction (BrowserFunction function) { |