Highlight a word or phrase in Firefox, in the popup there's a "Search" option. It will always search in Safari. Firefox had to add their own "Search in Firefox" option, that appears at the end of the popup (and sometimes not at all).
I can verify this. Setting Firefox to my default browser doesn’t change the behavior of “Search on internet” word lookup on long press: it still opens in Safari.