Firefox takes too long to shut down. Once I close the program itself, I cannot restart Firefox until 5-7 seconds passed. If try to restart it within those 5-7 seconds, I get an error that asks if I want to shut down Firefox. "Keep Firefox running after shut down" option is disabled.
You tweaked Windows 10 now face the consequences. Spoiler Check your A/V for affecting somehow FF behavior
How about SpeedyFox? Though you should still try to analyze the cause for this. How many tabs are open, how many extensions are installed and enabled, have you tweaked any configs, etc.
If You say 5-7 seconds, it is very fast. By default Windows closes processes and services after 15 seconds waiting (You can change it for example to 5 seconds, less is not recommended). By default and if there is opened only one window there is running usually 5-7 processes but usually more if You have installed some extensions, automatic maintanance is not disabled etc. To make ff shut down faster, disable as much as possible background services related to ff, set the waiting time for processes to end and the waiting time for services to end to 5 seconds and this is maximum, what You can do. If it is not enough, use kill ff processes command or shorcut. For example desktop or taskbar shortcut Code: %windir%\System32\cmd.exe /c taskkill /f /im firefox.exe if windows is on drive C:, simply Code: C:\Windows\System32\cmd.exe /c taskkill /f /im firefox.exe
I can close firefox and instantly start it again, with as many tabs open (in the past i had 200+ open and set firefox to start with the tabs, opened during the last session) as i want.
Then you probably have it set to run in the background after it closes. I also use portable. When I re-open Firefox, tabs that were loaded when I closed it, do not re-appear. I do not want them to. I just want full and fast shut-down of all Firefox processes/services. Chrome does it really fast if it isn't set to run in the background, even portable Chrome. I just like Firefox for privacy reasons.