Thanks, I was wrong about that. On iOS, Firefox switched to webkit for iOS for rendering (which includes JS). For the desktop, Firefox used and uses Gecko; the desktop version of course came first.
Firefox-on-Store uses Webkit but there is an experimental fork using Gecko/Servo in case Apple allows in the future. You can build and developer-sign that fork for your own.