Broken Software

Broken Software

软件故障

Series of posts about broken software. Short stories. Today, Firefox. 这是一系列关于软件故障的短文。今天的主角是 Firefox。

Turns out to be that closing the window of the browser has different behaviour for window x button and Quit in menu. Click on menu will close the program and bring you all the tabs back with next launch. But on the other hand, closing the window with x button will wipe all the tabs out, so next time you open window — that would be brand new. Even if you configured browser to start from place where you’ve left. 事实证明,关闭浏览器窗口时,点击窗口上的“X”按钮和点击菜单中的“退出”选项,其行为逻辑是不同的。点击菜单退出会关闭程序,并在下次启动时恢复你所有的标签页。然而,通过点击窗口上的“X”按钮关闭,则会清除所有标签页,导致下次打开时窗口是全新的。即便你已经配置了浏览器在启动时恢复上次的会话,也无济于事。

And that is because closing the window is not closing the session. That’s the short story how I lost ~3k tabs. 这是因为关闭窗口并不等同于结束会话。这就是我丢失了约 3000 个标签页的简短故事。