Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 41887 - [browser] Mac - HTML Browser widget - investigate Safari browser
Summary: [browser] Mac - HTML Browser widget - investigate Safari browser
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Christophe Cornu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-22 17:10 EDT by Christophe Cornu CLA
Modified: 2004-04-27 19:38 EDT (History)
6 users (show)

See Also:


Attachments
Safari widget inside SWT applications (320.05 KB, image/jpeg)
2003-08-24 16:51 EDT, Andre Weinand CLA
no flags Details
The code (3.73 KB, application/octet-stream)
2003-08-24 16:54 EDT, Andre Weinand CLA
no flags Details
here's an updated Makefile for Panther with JDK 1.4.2 installed and Safari 1.2 (1.45 KB, text/plain)
2004-03-10 07:42 EST, James Strachan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Cornu CLA 2003-08-22 17:10:54 EDT
Investigate support for embedding Safari into the SWT Browser widget on the 
Mac.
Comment 1 Andre Weinand CLA 2003-08-24 16:50:05 EDT
The attached code implements a WebKit (Safari) based brower widget for SWT (see screenshot).
Be aware it works only with Panther.
Comment 2 Andre Weinand CLA 2003-08-24 16:51:52 EDT
Created attachment 5838 [details]
Safari widget inside SWT applications
Comment 3 Andre Weinand CLA 2003-08-24 16:54:59 EDT
Created attachment 5839 [details]
The code
Comment 4 Christophe Cornu CLA 2003-08-25 10:31:58 EDT
Andre, that's great! Thanks. We are going to look at it and see how we can 
support the current org.eclipse.swt.browser.Browser api with this.
Comment 5 Andre Weinand CLA 2003-08-25 10:38:04 EDT
If you want me to do a first implementation of the new SWT Browser based on this
(or if you don't have access to Panther), let me know...
Comment 6 Christophe Cornu CLA 2003-08-25 10:52:06 EDT
Andre,
1) Is there a reason why your code could not work on Mac OS 10.2 with Safari 
1.0 installed? We need to support this platform

It depends how much time you can give to this and on 1). We would need some 
implementation working on the current OS 10.2 pretty quickly (<= 2 weeks). If 
this sounds OK with you, yes your help and mac experience is very appreciated.

Chris
Comment 7 Andre Weinand CLA 2003-08-25 11:18:28 EDT
1) on 10.2 if the Java VM runs in the main thread loading the WebKit dll results in a native crash.
    (Apple itself suggested to run the Java VM in the main thread).
    If we run the Java VM in thread 1, we can load WebKit but deadlock in Color- and FontDialog
    (see bug #40003).
    On Panther we can both load WebKit and run Color/FontDailogs without deadlocks.

2) No, I don't think I'm able to resolve the issues with Safari under 10.2.
Comment 8 Christopher Lenz CLA 2004-02-20 06:28:26 EST
The 3.0 draft plan from January 30, 2004 states that "Apple Mac OS X 10.3" is
the reference platform. Doesn't this imply that Panther is the minimum OS X
version that needs to be supported?

I for one would be in favor of dumping Jaguar support, considering that WebKit
embedding isn't the only problem with Jaguar AFAICT.
Comment 9 Andre Weinand CLA 2004-02-20 07:43:56 EST
Correct, 10.3 will be required for the final version of Eclipse 3.0.
Comment 10 Christopher Lenz CLA 2004-02-20 08:18:11 EST
Well, then why is this bug still open? Why hasn't the code been committed yet
(or has it)?
Comment 11 Andre Weinand CLA 2004-02-20 08:23:12 EST
No, it hasn't (we are still working on issues).
Comment 12 James Strachan CLA 2004-03-10 07:42:49 EST
Created attachment 8456 [details]
here's an updated Makefile for Panther with JDK 1.4.2 installed and Safari 1.2

If its of any help I hacked the Makefile to work on my Panther box with JDK
1.4.2 installed.
Comment 13 James Strachan CLA 2004-03-10 07:45:12 EST
Note that I can run the webkit browser fine via the command line...

make run

But if I try to install the WebKit inside eclipse 3.0 M5 I get the usual stack trace exception when trying 
to open the browser.

Comment 14 Christophe Cornu CLA 2004-04-27 19:38:17 EDT
v>20040427 - The Browser widget is now available on the Mac (Panther OS X.3 
required). SWT FAQ has been updated.

Special thanks to Andre Weinand for contributing the initial implementation!