Just a thought. The problem could be that Mac traditionally uses '\r' as the EOL character whereas *nix uses '\n' and WinDOS uses the '\r\n' sequence.
Firefox probably does some pre-filtering of all possibilities into a common character, probably '\n' because of *nix on the server backend.
Andrew.