Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

搜索 | 用户支持

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

详细了解

How can I Exit Immediately - close current window and maybe open new?

  • 11 个回答
  • 1 人有此问题
  • 10 次查看
  • 最后回复者为 cor-el

more options

When I close a window, by clicking the upper right "X", by hitting alt F4, backspace or "home", or by clicking a new link, FireFox sometimes [depending on the open window] continues for a few seconds to process instructions from the open window. How can I stop this and always exit immediately?

When I close a window, by clicking the upper right "X", by hitting alt F4, backspace or "home", or by clicking a new link, FireFox sometimes [depending on the open window] continues for a few seconds to process instructions from the open window. How can I stop this and always exit immediately?

所有回复 (11)

more options

The browser first needs to close all of the files it has open. Then it will close. Otherwise, those files would be corrupted.

Or are you just talking about the current tab/window leaving Firefox running?

more options

FredMcD said

The browser first needs to close all of the files it has open. Then it will close. Otherwise, those files would be corrupted. Or are you just talking about the current tab/window leaving Firefox running?
Neither, really. I am talking about FF continuing to process commands from a window that I have closed. E.g., I hit alt F4, then for a few seconds the status line [lower left] shows continued activity while the window remains on the screen.

Thanks for your quick response.

PS, the corruption of files does not seem to matter when I kill the power with windows open.

由ral于修改

more options

Closing the browser normally attempts to close things down cleanly. This includes allowing some web pages, in particular web apps like gmail, to get shutdown messages. This is better for those websites than immediate shutdown.

If you want the closest to instantaneous you can get, I think you have to use Task Manager and use "End Process", or "End Process Tree" on the main Firefox process. Those attempt to terminate the process(es) with out sending the usual friendly "request shutdown" events first. If that fails to be fast enough, look into how to use the "KILL" console command.

You probably shouldn't do this regularly, as slightly slower clean shutdowns help avoid causing other issues in the future.

由GuardianElm于修改

more options

The quit request needs to to done on the main Firefox processor thread. If this thread is busy doing other things then it can take time before the shutdown is initiated. This quit request needs to be send to all other sub processes to make sure that Firefox closes cleanly and all session data is stored in the profile folder. Using a Kill in the Task Manager would prevent Firefox from closing properly and will likely corrupt files in the main profile folder and in the second location for temporary data.

Use one of these to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.

  • "3-bar" menu button -> Exit (Power button)
  • Windows: File -> Exit
  • Mac: Firefox -> Quit Firefox
  • Linux: File -> Quit
more options

From the moment you tell Firefox to close, how long does it take? More than 5 seconds? 10,20 . . . .

more options

Note that it takes longer if you use "Clear history when Firefox closes" to clear data like the disk cache.

more options

I see that all our replies in this thread are marked as unhelpful, so apparently we are not able to answer your question satisfactorily.

If you use the close X in the top right corner then this merely makes Firefox close this window. If this would be the last window then a quit operation is initiated, so using the close X is the slowest way to close Firefox.

more options

cor-el said

Note that it takes longer if you use "Clear history when Firefox closes" to clear data like the disk cache.

I am not trying to close and quit FireFox. Only one of several open FireFox windows.

more options

cor-el said

I see that all our replies in this thread are marked as unhelpful, so apparently we are not able to answer your question satisfactorily. If you use the close X in the top right corner then this merely makes Firefox close this window. If this would be the last window then a quit operation is initiated, so using the close X is the slowest way to close Firefox.

I am sorry I have not been clear. I am not talking about closing and exiting FF, only one FF window. Only if this is the only open FF window will I be closing and exiting FF.

Usually this [the processing of commands from the closing window] takes only 2 or 3 seconds, but it can take up to 10 seconds.

I do not use tabs unless forced to.

由ral于修改

more options

With more than one Firefox window open, closing just one should not take more than a moment.

Is there anything special in the window you are closing? clips, heavy calculations . . . .

Is this with many window/websites, some, a few?

more options

If there is only one tab in each window then closing this tab should close the window as well.

Does this still cause your problem?