MacOS – Firefox won’t respond to force-quit

applicationsfirefoxmacos

On http://repl.it, I accidentally created an infinite loop in Python 3. I tried to close the tab, but Firefox already stopped responding. It wouldn't respond even after a while, so I force quitted FF. Then, I tried to reopen it, and it bounced for a while. It wouldn't reopen, so I force quitted and reopened again. Now, it is just sitting on my Dock with the little black "open" dot below it. Clicking on the icon does nothing.

How can I fix this? (I hate Safari) I don't mind using Bash/Terminal, if it makes a difference. Also, it would be nice if it didn't reboot all my other apps as well, but if worst comes to worst, this is okay. Thanks!

Best Answer

A few things you can try (ordered by "assertiveness"):

  • Start with Command-Option-Escape to bring up the Force Quit dialog and see if it's there. If it is, force quit it (sounds like you've already tried this).

  • Open Terminal, and run ps -eaf | grep Firefox. If Firefox appears in the list (note that there will always be an entry for grep Firefox, this is not what you want, the actual Firefox will be listed as something like /Applications/Firefox.app/Contents/MacOS/firefox), note the PID (the second column, a number), and run kill -9 <PID>.

If neither of these work, try restarting the Dock (maybe Firefox actually isn't running but the Dock is confused):

  • Use the same ps -eaf | grep Dock.
  • There should be a process called /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock, note the PID and run kill <PID>.
  • The Dock should disappear momentarily and then restart.

If all this fails, easiest thing to do is probably just reboot your machine. If the usual shutdown dialog fails, press and hold the power button until the computer powers down.