"Run" keeps opening Chrome even when the only active browser is Firefox, even when Firefox is default system browser
Hi,
First time PHPStorm user.
I noticed that whenever I try to run a file, even when I only keep Firefox as the active browser and select "first of the list" in the settings, it keeps opening chrome when I hit Run at the top.

And that's despite Firefox being my default browser in the system.

I tried to look in the config files, found this one (web-browsers.xml) which is consistent with my actual config in the UI:

I found some threads that looked like my issue but it seemed to be related to the debug feature for JS files requiring Chrome, but my issue happens even using the normal “Run” feature and even with non-JS files, for example running an html file.
I would appreciate any help on this issue.
Thank you for your time.
请先登录再写评论。
Hi there,
Correct. It is also stated in the official help pages: https://www.jetbrains.com/help/phpstorm/debugging-javascript-in-chrome.html – “Debugging of JavaScript code is only supported in Google Chrome and in other Chromium-based browsers.”
You are 100% correct. Sadly it's the way it's implemented (it will use your “First listed”, but among Chromium-based ones).
You should use the floating browser bar for that instead – as per official comment found in this ticket: https://youtrack.jetbrains.com/issue/WEB-64875. I'm also facing this and had to enable that browser bar (otherwise I would keep it disabled (although should be able to do a custom shortcut for popup menu with enabled browsers)).
As it's mentioned in the other threads, debugging is only supported in Chrome and browsers of the Chrome family, see the help. So, when you start the app with the Run/Debug action, the IDE will try to open Chrome (or, if it can't be found in the list of browsers in Settings/Preferences | Tools | Web Browsers and Preview, the first listed Chromium-based browser will be used). Also, it won't allow you to select any non-Chrome browser in the run configuration unless none of the Chromium-based browsers are enabled in settings, as this won't work anyway.
If you don't need to debug your application and would just like to preview your page in Firefox, try using the browser bar in the upper right corner of the editor to open the page in the browser of your choice.
Thank you for your answers Elena Pogorelova and Andriy Bazanov , sorry for the late update. I managed to make it work with the browser bar, I find it very odd that the run and debug features only work with chromium based browsers, but I guess it's not like I can do much about it.
Thank you for your time.
Have a good day/night.
Really annoying problem, and it has a fairly silly solution.
On the right hand side you'll see the “Path” listed as “chrome”
Change this to “safari” and it will open safari instead.