However, the solution seems so simple that I should have searched the internet earlier to make my life easier. In firefox official support website, it mentioned that this is configurable in Peferences:
- On the menu bar, click on the menu and select
- Select the panel.
- The Applications panel will display. Select the type of file for which you want to change the default action.