Apple should ditch WebKit and adopt Gecko. Mozilla could use the funding. and the two organizations share similar philosophies on user privacy. It would also deal a significant blow to the growing Blink monoculture.
According to the book “Creative Selection” (by one of the original Safari devs). They tried with Gecko first, but the POC didn’t went far: the build system at that time was messy and they couldn’t get it work. So they switched to KHTML, because of the nice code base. That internal fork evolved to WebKit.
I remember peeking around the Gecko codebase when Firefox got popular - and yeah, it was pretty gnarly. I remember seeing related .cpp files in the same directory using different naming conventions, for example.
WebKit is close enough to Blink that this move would be bad for the ecosystem as a whole. More variety in web technology implementations makes it harder for any one approach to dictate the standards going forwards.
Yup, it’s a fork of KHTML, much like Blink is a fork of Webkit.
One thing that WebKit does better than other browsers on OSX is hooking into the native rendering APIs. That’s something that Firefox does a shoddy job at.