Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 429739 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java (+2 lines)
Lines 1876-1881 public Object getWebBrowser () { Link Here
1876
		webBrowser.AddRef ();
1876
		webBrowser.AddRef ();
1877
		return webBrowserObject;
1877
		return webBrowserObject;
1878
	} catch (ClassNotFoundException e) {
1878
	} catch (ClassNotFoundException e) {
1879
		webBrowserObject = webBrowser;
1880
		return webBrowserObject;
1879
	} catch (NoSuchMethodException e) {
1881
	} catch (NoSuchMethodException e) {
1880
	} catch (IllegalArgumentException e) {
1882
	} catch (IllegalArgumentException e) {
1881
	} catch (IllegalAccessException e) {
1883
	} catch (IllegalAccessException e) {
(-)a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/Execute.java (-1 / +5 lines)
Lines 26-31 public class Execute extends nsISupports { Link Here
26
	}
26
	}
27
27
28
	public int EvalInWindow(nsIDOMWindow aWindow, nsEmbedString code, long /*int*/[] aVariant) {
28
	public int EvalInWindow(nsIDOMWindow aWindow, nsEmbedString code, long /*int*/[] aVariant) {
29
    return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant);
29
		return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant);
30
	}
30
	}
31
	
32
	public int EvalAsChrome(nsIDOMWindow aWindow, nsEmbedString code, long /*int*/[] aVariant) {
33
		return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aWindow.getAddress(), code.getAddress(), aVariant);
34
 	}
31
}
35
}
(-)a/bundles/org.eclipse.swt/components/swt.js (-3 / +2 lines)
Lines 25-33 execute.prototype.evalInWindow = function(aWindow, aString) { Link Here
25
};
25
};
26
26
27
execute.prototype.evalAsChrome = function(aWindow, aString) {
27
execute.prototype.evalAsChrome = function(aWindow, aString) {
28
    with (aWindow) {
28
    var window = XPCNativeWrapper.unwrap(aWindow);
29
        return eval(aString);
29
    return eval(aString);
30
    }
31
};
30
};
32
31
33
execute.prototype.evalAsync = function(aWindow, aString) {
32
execute.prototype.evalAsync = function(aWindow, aString) {

Return to bug 429739