How to Get Firefox Ask Before Closing Multiple Tabs

One of the very useful features found in the Mozilla Firefox web browser that isn’t implemented in Google Chrome despite many requests over the years is the ability to warn the user when closing the web browser with multiple tabs opened. This feature is very useful because there are times when we tend to accidentally click the X button located at the top right of the window which will terminate the Firefox program. It would be disastrous if one of the tabs has an important webpage that is based on session and cannot be restored by reloading or refreshing the page.

By default, attempting to close Firefox with multiple tabs opened will show a warning “Confirm close” window with the message “You are about to close X tabs. Are you sure you want to continue?

warn when attempt close multiple tabs

Clicking the Cancel button will keep Firefox running but if you’ve accidentally unchecked the option “Warn me when I attempt to close multiple tabs“, Firefox will no longer ask for your confirmation and will instantly close the program. In this article we’ll show you how to restore back the warning on exit when multiple tabs exist.

Click at the menu icon located at the top right and select Options. If you couldn’t find the menu icon, press Alt+T and select Options. When you’re in the preferences page, make sure that General tab is selected. Finally tick the “Warn me when closing multiple tabs” checkbox. This setting takes effect immediately without the need to restart your Firefox browser.

warn me when closing multiple tabs

For older versions of Firefox that still uses the classic preferences look, you can find the setting at Options > Tabs > and tick the “Warn me when closing multiple tabs” checkbox.

old firefox options warn closing multiple tabs

Alternatively, the manual way of achieving the same result is by typing about:config in the location bar to access the hidden application settings. Click the “I’ll be careful, I promise!” button, and type browser.tabs.warnOnClose at the search bar.

The default value is True which will warn you when closing Firefox with multiple tabs. If it is False, simply double click to change the value back to True, or right click and select Toggle.

browser tabs warnonclose

If you’ve been using Firefox long enough, you may have noticed that this warning window has been slightly changed since Firefox 4. Before Firefox 4, closing the browser with multiple tabs will give you the option of saving the tabs so that they will be automatically reloaded the next time you run Firefox. It is a similar looking popup window but instead the message shows “Do you want Firefox to save your tabs for the next time it starts?

firefox save tabs for next time

Although there might be a valid reason why the Firefox development team changed this behavior, this feature may be more convenient and useful to some people. If you prefer to have this option instead, it can be turned on by typing about:config in the address bar and click the “I’ll be careful, I promise!” button. Then type browser.showQuitWarning in the Search bar and change the value from false to True.

browser showquitwarning

Do take note that this browser.showQuitWarning option takes precedence over the browser.tabs.warnOnClose. This means that if you have the “Save and Quit” option enabled, it will override the default behavior of warning when closing multiple tabs.

Additional Tip: If Firefox is somehow accidentally closed and you want to reopen all the previous tabs that were opened before Firefox was terminated, you can do so by clicking at the “Restore Previous Session” button located at the bottom right of the Mozilla Firefox Start Page, or alternatively you can press Alt+S to automatically open History from menubar and select “Restore Previous Session“.

145 Comments - Write a Comment

  1. LB 4 years ago
  2. MANUEL 4 years ago
    • LB 4 years ago
  3. Bopik 5 years ago
    • Rami 5 years ago
  4. Zoran 11 years ago
  5. zll 11 years ago
  6. gopi.smak 11 years ago
  7. muhammad fanani 11 years ago
  8. Mohi 11 years ago
  9. Bich 11 years ago
  10. Bob The Builder 11 years ago
  11. szproteus 12 years ago
  12. Daniel Van Persie 12 years ago
  13. Cece Writer 12 years ago
  14. Gianni 12 years ago
  15. Iftekhar Hussaini 12 years ago
  16. Tpman2004-misc 12 years ago
  17. Shajahan A Kharim 12 years ago
  18. Anonymous 12 years ago
  19. msjones 12 years ago
  20. jbbb 12 years ago
  21. fufu 13 years ago
  22. Roger form Montana 13 years ago
  23. Roger form Montana 13 years ago
  24. Koshii 13 years ago
  25. Shevy Bee 13 years ago
  26. Sourav 13 years ago
  27. asdf 13 years ago
  28. JOEY JO JO 13 years ago
  29. Edgar Castro 13 years ago
  30. Magno 13 years ago
  31. chi-town girl 13 years ago
  32. freeware 13 years ago
  33. Adam 13 years ago
  34. md.khaled 13 years ago
  35. Mouktik 13 years ago
  36. Cole 13 years ago
  37. moi toi 13 years ago
  38. jeff 13 years ago
  39. lee 13 years ago
  40. Ida 13 years ago
  41. ejan 13 years ago
  42. Mange 13 years ago
  43. ken 13 years ago
  44. Dinesh Kumar Shaw 13 years ago
  45. pantelis 13 years ago
  46. mental 13 years ago
  47. Rifki 13 years ago
  48. Gaggo 13 years ago
  49. Dudley Fuddpucker 13 years ago
  50. dude 13 years ago
  51. jess 13 years ago
  52. rajiv kumar mishra 13 years ago
  53. Amy 13 years ago
  54. Lucy 13 years ago
  55. Christiana 13 years ago
  56. Waltman 13 years ago
  57. FAUSTO MXLI 13 years ago
  58. Blackwolf 13 years ago
  59. erin 13 years ago
  60. V 13 years ago
  61. User 13 years ago
  62. Maria 13 years ago
  63. Cordless 13 years ago
  64. ishtiak 13 years ago
  65. mek 13 years ago
  66. designi1 13 years ago
  67. Idaho Jill 13 years ago
  68. Albert 13 years ago
  69. homestilo 13 years ago
  70. Alex 13 years ago
  71. Matt Heller 13 years ago
  72. MD 13 years ago
  73. assfgfg 13 years ago
  74. Patrick K. 13 years ago
  75. rob harrison 13 years ago
  76. Addy 13 years ago
  77. Eduard 13 years ago
  78. Angel 13 years ago
  79. Sarah 13 years ago
  80. MG 13 years ago
  81. leakeg 13 years ago
  82. cateus 13 years ago
  83. oggmeista 13 years ago
  84. gimpshrimp 13 years ago
  85. Ojas 13 years ago
  86. Rajiv 13 years ago
  87. apotsi 13 years ago
  88. Tiny 13 years ago
  89. kaizerkaos 13 years ago
  90. 7a$o0n 13 years ago
  91. seagem 13 years ago
  92. Outi 13 years ago
  93. PaulW 13 years ago
  94. GrahamG 13 years ago
  95. Julie 13 years ago
  96. visha joshi 13 years ago
  97. Anonymous 13 years ago
  98. gibson 13 years ago
  99. Kevin 13 years ago
  100. Bryan 13 years ago
  101. Sycsa 13 years ago
  102. Ravi 13 years ago
  103. kcl 13 years ago
  104. Ralph 13 years ago
  105. Steve 13 years ago
  106. Babak 13 years ago
  107. Andrew 13 years ago
  108. saman 13 years ago
  109. Rie 13 years ago
  110. mubashir 13 years ago
  111. b 13 years ago
  112. zeestom 13 years ago
  113. abc 13 years ago
  114. lildoro 13 years ago
  115. radiant-glow 13 years ago
  116. thanx4sharing66 13 years ago
  117. Ravinder Saxena 13 years ago
  118. MIke jackson 13 years ago
  119. asd 13 years ago
  120. di 13 years ago
  121. Adriano Labate 13 years ago
  122. mar87 13 years ago
  123. JoshuaH 13 years ago
  124. ch 13 years ago
  125. from kor 13 years ago
  126. Robyn 13 years ago
  127. Deex 13 years ago
  128. Patrick 13 years ago
  129. Tommo 13 years ago
  130. xDR1TeK 13 years ago
  131. dpbert 13 years ago
  132. rishi 13 years ago
  133. INDRANIL 13 years ago
  134. roy raay 13 years ago
  135. Cserb 13 years ago
  136. Dolphy 13 years ago
  137. skyzyk 13 years ago
  138. Manjunath 13 years ago
  139. Steph 13 years ago
  140. sam 13 years ago
  141. Ed 13 years ago
  142. Vivek 13 years ago
  143. Firas 13 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.