diff options
author | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-04-09 15:30:51 -0400 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-04-09 15:30:51 -0400 |
commit | 4889b0fc071b3a53913d59336581d560f1697f55 (patch) | |
tree | 2b5c9c5e267ea3ca0266683cbad7b6c97eb8b880 | |
parent | 8710f852db4fc9958b4bb54e4ade6b0911b03418 (diff) | |
download | eclipse.platform.swt-4889b0fc071b3a53913d59336581d560f1697f55.tar.gz eclipse.platform.swt-4889b0fc071b3a53913d59336581d560f1697f55.tar.xz eclipse.platform.swt-4889b0fc071b3a53913d59336581d560f1697f55.zip |
Bug 372654 - XULRunner 10 crash when JS window.print() invoked (Carbon
fix)
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java index 486dbdc803..1b4fe1a737 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java @@ -22,6 +22,7 @@ import org.eclipse.swt.widgets.*; class MozillaDelegate { Browser browser; + int embedHandle; Listener listener; boolean hasFocus; static Callback Callback3; @@ -187,7 +188,7 @@ int createBaseWindow (nsIBaseWindow baseWindow) { } int getHandle () { - int embedHandle = Cocoa.objc_msgSend (Cocoa.C_NSImageView, Cocoa.S_alloc); + embedHandle = Cocoa.objc_msgSend (Cocoa.C_NSImageView, Cocoa.S_alloc); if (embedHandle == 0) { browser.dispose (); SWT.error (SWT.ERROR_NO_HANDLES); |