[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-swt-dev] SWT browser
- From: Scott Kovatch <skovatch.swt@xxxxxxxxx>
- Date: Thu, 10 Feb 2011 16:13:04 -0800
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :x-priority:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=OqjQnXnDsnm4rkVkXvxYloQHZl+R1OScYl680osFndU=; b=aUWqVY1UFiCtuCh03TnmDPThtfd10Hqxtf9zOWcthcmtbnAXSTsjmpev6n7otIefcR p+jgTngjQztgUeN3h/NZ1o/uhwTFCM6MB6AyoSggwBp0J2EEhWm5UG8U+L6Ncn4JQgD2 wevAxXj6m53fgWiWJm1iO5yBgIYkqCaP3GEuI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:x-priority:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=Higo9slJ48HLUIl9MjauwTEDSo7XJGwimbHBRuOvh3GyAoZA1KFUFoC2tUYopUOydq 2BiKhikYZ4vxsNPhlRVj/4HsTytVpK3++1IrR4DTNB3FB8KGNae3g3CgC4W6mRt0xzeb ly+v19iBSmYCChI2M5ebfeMzJhBECqXio2dnw=
I can answer a few of these, but Grant will likely need to answer some of them.
On Feb 10, 2011, at 3:05 PM, Dermot Doherty wrote:
> 2) Both Mozilla and WebKit on Mac throw a "java.lang.NoSuchMethodError: doubleValue". It is difficult to pinpoint exactly where this is occurring, but it seems to happen when I create a new SWT browser instance.
> This is not happening on Windows.
> See the log output below:
> java.lang.NoSuchMethodError: doubleValue
> at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> at org.eclipse.swt.widgets.Display.applicationSendEvent(Unknown Source)
> at org.eclipse.swt.widgets.Display.applicationProc(Unknown Source)
Given that it's java.lang.NoSuchMethodError that makes me think we're using reflection somewhere but the object we invoke it on doesn't have that method. But, I don't see any uses that call doubleValue. It's especially odd to see it during objc_msgSendSuper. Check Console.app to see if you're getting any additional information.
If you have a simple test case that can reproduce it, please file a bug.
> 4) SWT WebKit browser on Mac disables Java when embedded in Safari.
> Explanation: When a SWT WebKit Browser is embedded in a Java applet on Mac the "Enable Java" preference gets disabled. This is not happening when the Mozilla engine is used.
> Is there something in the WebKit implementation that automatically disables Java that may be getting picked up by Safari which is also using the same WebKit engine. This only happens for the first SWT WebKit browser that is embedded. Subsequently embedded SWT WebKit browsers on the same page do not disable the Java (after manually enabling the Java in Preferences > Security).
But, it's only called once during initialization. I suspect standardPreferences() are per-user, so it makes sense that turning it on again in Java Preferences would enable it again for any additional Browser widgets created.
This is probably a holdover from Carbon. I seem to recall a situation where you could end up embedding Cocoa (WebKit) into Carbon and then somehow putting a Carbon view into the Browser. And you can't mix Carbon and Cocoa that way, so it makes sense to block applets. In Cocoa there may not be a reason to prevent that.
> 5) Do Java Applets run in the SWT WebKit browser?
I don't know that we've ever tried. On the Mac it may work now in Cocoa, but you'd have to rebuild the SWT to try it out.
Hope some of that helps.
-- Scott K.
Eclipse Platform Team