Pablo, Firefox is the browser, Thunderbird is the email program. After T-Bird installs, set it as the default email program.
Another way around your issue, if you don't want to install T-Bird and have Yahoo messenger already installed, is just do set Yahoo as the default email program. Once set this way, Yahoo will spawn your default web browser (Firefox) to login to your Yahoo account. All without any extra email software on your computer.