Firefox/Dev/GTK4
Today I tried a little crazy thing, fill in the experimental version of Firefox prepared to be compatible with GTK4.
Bugzilla reference page:
https://bugzilla.mozilla.org/show_bug.cgi?id=1701123
GitHub:
https://github.com/xerxes2/gecko-dev
Building
There was an error relating to my libpng who did not have apng support.
"png won't work because the system's libpng doesn't have APNG support"
After some implementation attempt, I modified the Mozconfig by removing the support for PNG and the compilation continued correctly.
Building was completed successfully but it doesn’t seem to be in GTK4 and crashes immediately.
./mach Run shows Firefox window with an error I think relating to the mouse Wayland cursor:
"Wayland protocol error: proxy 7491826989a0 already has listener"
I can at times command it as a keyboard without obtaining a navigation that allows me to view About: Support.
Unofficial Firefox GTK4 port
Download
The smallest download you can do is cloning with depth 1 (around 840 MB):
$ git clone --depth 1 https://github.com/xerxes2/gecko-dev.git
Build
$ cp mozconfig.proto mozconfig
$ ./mach configure
$ ./mach build
And start it with:
$ ./mach run
Coding
This port is using the widget/gtk4 directory exclusively and outside of it you must use “#ifdef MOZ_GTK4”. It’s focused on Wayland so X11 is disabled, for now at least. All code must be fully compatible with the official Mozilla GTK3 port.
All contributions very much welcome.
Discussion
Ticket at Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1701123
Help
GTK4 porting doc: https://docs.gtk.org/gtk4/migrating-3to4.html
Leave a Reply