How to embed a web browser control in a cross-platform application?

I need to quickly write this application: a simple window that wraps a web browser control that launches html pages. The browser user interface (e.g. navigation buttons) must be disabled.

As a .net developer, I would embed WebBrowser OCX in Windows Form. But it should also work on a Mac!

I found the following cross-platform candidates. Which one would you choose (in terms of simplicity, stability, community support, etc.):

+6
browser cross-platform embed webbrowser-control macos
source share
5 answers

Why not use embedded webkit?

+3
source share

QtWebkit :

The Qt WebKit port is currently compiled and runs on Linux (including Maemo), Windows, Mac OS X, and Symbian.

Click here for assembly instructions.

A very simple test browser with the port has been created.

+1
source share

Since you have (an assumption made from your message). Networking experience with Mono.

Have you considered Adobe AIR? http://www.adobe.com/products/air/

0
source share

Mono is probably the best choice if you're primarily a .NET developer and don't care about creating a well-integrated Mac app (which behaves like the Mac app in many cases that Mac users expect), Given your problem space, it sounds like you are. In doing so, pay particular attention to this limitation from the WebBrowser page if it relates to your problem:

Mono Webbrowser currently lacks support for window.external, a bridge that allows Javascript code to be built into the browser to communicate with the managed world using ObjectForScripting.

QT has worked very well and is a great platform if you want to develop this in C ++. Remember that there are licensing fees if this is a commercial application.

I played a little with wxWidgets. The big advantage here is that it will probably be the smallest distribution since you only need to include what you need. If all you need is a web browser, I would look at it, but in my experience it is difficult to make wxWidgets programs look good or act correctly on a Mac (or Windows, for that matter).

0
source share

Another option would be to write as a Java application using the Eclipse Standard Widget Toolkit . This includes a browser control that embeds IE, Safari, or Firefox, depending on the current platform, and usually behaves well on OS X.

0
source share

All Articles