People used to build a lot of software around Gecko, there are still some notable users like Komodo IDE, but Firefox is a lot harder to embed than it once was. Servo from the Rust team was supposed to solve this by providing a new embeddable browser core, not sure if that is still the long term plan