Hi

I'm a little overwhelmed by the various ways of embedding mozilla.

My application requirement is very simple:
I am displaying a local index.html file (incl. css style sheet) in
full-screen and without any user interface. From another application I
am triggering a reload of that site. If the loading the site fails for
some reason (e.g. index.html doesn't exist) I am displaying another
error.html. I'm running Linux on a PowerPC MPC5200 with X and gtk+-2.

(1) Initially I wrote a XUL application by creating a folder
./mozilla-central/mybrowser and building it with:
ac_add_app_options mybrowser --enable-application=mybrowser
ac_add_app_options mybrowser --with-libxul-sdk=../xulrunner/dist

Apart from a poor performance (probably due to a bad configuration at my
side) it does work. I'm also suffering from the restrictions on IPC
mechanism. In order to trigger a reload from another application I had
to setup a WebServer that does nothing but wait for the other process to
open the port.

(2) My second approach was to use gtkmozembed. Based on
./mozilla-central/embedding/browser/gtk/tests/TestGtkEmbed.cpp I've
written my application. It seemed to me that this is a much leaner
approach compared to (1). I've implemented the reload-triggering by
catching SIGUSR1. In its interrupt handler I'm setting a global flag
only that I'm polling for in a timer. I could make the browser global
and do the reload directly in the interrupt handler but I'm afraid I
could catch mozilla in a bad moment?!

(3) As a third approach I tried following this
https://wiki.mozilla.org/Embedding/NewApi/GtkLinux but the configure
fails with "libxul-embedding-unstable is required".

Before I continue any road, can you please suggest what's the best
approach? I'm quite confused at this point.

Also could you please comment on these issues I'm having?

*** Is there a preferred / known-to-be-working configuration for a
minimal XULRunner? (according to the profile mentioned here:
https://wiki.mozilla.org/Gecko:Small_Device_Support)

After a lot of trial&error this is what I'm currently using as
configuration:
--enable-optimize --enable-strip --disable-plugins
--disable-accessibility --disable-printing --disable-installer
--disable-mochitest --disable-updater --disable-logging
--disable-necko-wifi --disable-jsd --disable-ogg --disable-wave
--disable-crashreporter --disable-parental-controls --disable-dbus
--disable-permissions --disable-negotiateauth --disable-libnotify
--disable-xtf --disable-dbm --disable-zipwriter --disable-extensions
--disable-xpfe-components --disable-xpinstall --disable-pref-extensions
--disable-universalchardet --disable-pango --disable-gnomeui
--disable-gnomevfs --enable-image-decoders=png,gif,jpeg
--enable-necko-small-buffers --enable-faststart
--enable-enable-plantext-editor-only --disable-profilelocking
--enable-mobile-optimize --disable-vista-sdk-requirements
--enable-native-uconv --disable-tests

I've seen sample configs using "ac_add_options
--with-embedding-profile=minimal" but I've grepped the source for
"embedding-profile" and it comes up with nothing!

*** Is it possible to disable the history function? Also, is it possible
to disable caching of the sites?

Many thanks
Stefan.



_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to