We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why Firefox 36.0 never warns closing multiple tabs?

  • 7 个回答
  • 3 人有此问题
  • 1 次查看
  • 最后回复者为 DuckRiver

more options

Clicking the wrong "X" up there in the top right terminates a Firefox session without seeking confirmation. Yes, the tabs do return on restart (set in General), but on dreadful dial-up an erroneous click can take a very long time to restore. On the Tabs options, "Warn me when closing multiple tabs" is checked, but "Show windows and tabs from last time" seems to take precedence. I want the best of both worlds, restoring open tabs on startup, but with confirmation required before multiple tabs disappear. This is not a new problem, with the same behavior persisting through many Firefox releases.

Clicking the wrong "X" up there in the top right terminates a Firefox session without seeking confirmation. Yes, the tabs do return on restart (set in General), but on dreadful dial-up an erroneous click can take a very long time to restore. On the Tabs options, "Warn me when closing multiple tabs" is checked, but "Show windows and tabs from last time" seems to take precedence. I want the best of both worlds, restoring open tabs on startup, but with confirmation required before multiple tabs disappear. This is not a new problem, with the same behavior persisting through many Firefox releases.

所有回复 (7)

more options

If "Show windows and tabs from last time" then you likely won't be asked for confirmation and yes that is the preferred setting to avoid problems with restoring a session is case of problems with crashes or other restart reasons like an update.

You could keep another window open and use History > Recently Closed Windows to reopen that accidentally closed window. Use "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit) to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.

more options

Thank you cor-el, for your prompt and comprehensive reply. I understand the programming need you mentioned for having windows and tabs restored on restart, and my windows and tabs do exactly that; they all come back as they are directed. My problem is solely on account of the limitations of dial-up internet access, basically it is brutally slow and has been known to go to sleep with very little encouragement. On high-speed, reopening oopsie tabs closed in error is no more than a blink or two. The same reopening of 10 or 12 tabs via dial-up would, conservatively, consume the best part of a half hour! My inbox (one of the tabs) usually exceeds a full 10-minutes to finish drawing, and depending on how graphical the other tabs are, there is a heap of waiting while pages redraw. My problem is how to intervene in a Firefox close/exit command by means of a dialogue box telling me not to be an idiot, and without losing the very valuable restore windows/tabs setting.

more options

Maybe hide the Close button with code in userChrome.css.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#titlebar-close { display:none !important; }

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

由cor-el于修改

more options

Wow, cor-el, I like it! Bit hard core for me, but if I muster the necessary courage, I am game to give it a try. Any chance the programmers of the finest browser this side of the Andromeda galaxy, could be convinced to add this wonderfully slick solution as an (strange) option in a future release? High-speed users would scratch their heads at the peculiar notion of hiding the X, but for those of us condemned to suffer the vagaries of dial-up, it is a boon. As I write this, my anti-virus is updating 89MB; been chugging for 4-hours, and estimates more than another 7-hours to go. Is the X just hidden, or is the space it formerly occupied also disabled?

more options
  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userChrome.css file in the editor window
  • Make sure that the userChrome.css file starts with the default @namespace line
  • Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.
    Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file
more options

cor-el, your specific directions (even for case sensitive and lower case) inspire confidence. When the anti-virus update is finally finished doing its thing, I shall close Firefox, copy my profile (in case I mess up), follow your instructions, cross my fingers and watch my X disappear. Thanks, again, your solution is nifty and involves thinking outside the box.

more options

For other readers considering enacting this, I should add that my "copy profile" step is a very easy method of recovering from errant keystrokes. Menu Help, Troubleshooting Information, Profile Folder and Show Profile locates and opens that vital folder. Just built a new puppy, and successfully migrated both Firefox and Thunderbird to the new machine, bookmarks, address book, passwords, everything operating just the way it was on the retiring computer. Wonderful.