There is absolutely no way it was from scratch. Phoenix and Firefox both had XUL. It was a derivative of Gecko from Mozilla.