Since Firefox is a free download, let your friend get his own copy if he wants to use it. Wipe the entire thing. You'd also be breaking the software license conditions you agreed to for every app. that you leave on the box and still intend to use on your new one.
Best practice for old and new owner both is to start afresh with a re-formatted hard disk. If you're determined to be his software pusher, it's safest and cleanest to give him copies he loads himself. Just handing the 'puter over as-is puts you on the hook as 'the guy who knows how this thing works/who left it in this mess.'