The "alert messages" you are seeing in Firefox on your old Mac are almost certainly browser-based scams(tech support scams, adware extensions, or malicious notifications) rather than a deep, system-level virus. Because these usually live inside your browser profile, using Apple's built-in Migration Assistant or copying your entire user folder could transfer the bad files over.
Here is exactly how to safely set up your new Mac without bringing the problem along:
1. Do Not Transfer Firefox Data via Migration Assistant
When you turn on your new Mac, Apple's Migration Assistant will ask if you want to transfer data from your old Mac.
- Safe to transfer: Applications, Documents, Photos, and Downloads.
- Avoid transferring: Leave "Computer & Network Settings" or any custom system settings unchecked if given the option, as browser data resides inside your user library settings.
- The safest option: For complete peace of mind, choose not to use Migration Assistant at all for your user profile settings. Instead, manually transfer only your raw data files (like PDFs, Word docs, photos) using an external hard drive, USB flash drive, or cloud storage (like iCloud, Google Drive, or OneDrive). Raw files like photos and documents cannot carry these Firefox browser scams.