Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Firefox opens previous tabs on startup even though this setting is turned off

  • 12 trả lời
  • 1 gặp vấn đề này
  • 45 lượt xem
  • Trả lời mới nhất được viết bởi TNorth

more options

Whenever I open Firefox it opens a new tab for a brief moment then closes it and opens my previous tabs from my last session. I have this setting unchecked in the settings. I think that it is crashing and trying to restore my pages because of that, but there are no crash reports when I visit about:crash. I am running the latest version of Firefox and windows 10.

Tất cả các câu trả lời (12)

more options

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

Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts. The user.js file will only be present if you or other software has created this file and normally won't be present.

You can check its content with a text editor (right-click: "Open with"; do not double-click). The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.

You can delete the user.js file if you didn't create this file yourself.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

Thank you for the speedy response! I deleted the user.js file, but it was recreated when firefox opened. I will try the other ways of exiting and see if they work.

more options

You may have corrupt sessionstore [v56] sessionstore.jsonlz4 file(s). Delete all sessionstore* files and the sessionstore-backups folder.

Type about:support<enter> in the address bar.

Under the page logo on the left side, you will see Application Basics. Under this find Profile Folder. To its right press the button Show Folder. This will open your file browser to the current Firefox profile. Now Close Firefox.

Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder

Linux: Under the page logo on the left side, you will see Application Basics. Under this find Profile Directory. To its right press the button Open Directory.

Locate the above file. Then rename or delete it. Restart Firefox.


Don't delete the files if you need to rescue any data from them, just move them out of the profile folder to some location where Firefox doesn't look for them. You can try to read out their contents using this tool: https://www.jeffersonscher.com/res/scrounger.html

more options

I'm afraid this did not work either. I moved both the folder and the sessionstore file to my desktop and Firefox just makes another folder and restores from that instead. The sessionstore file has not been recreated though.

Được chỉnh sửa bởi Luke Shuttleworth vào

more options

You can check if you have a user.js file in the Firefox profile folder that sets the browser.sessionstore.resume_session_once pref to true.

If you have this content in user.js then that explains why you get those tabs on the next start.

What other content is in user.js as that might explain what software creates this file ?

more options

This is all the user.js file says:

user_pref("devtools.chrome.enabled", true); user_pref("devtools.debugger.prompt-connection", false); user_pref("devtools.debugger.remote-enabled", true);

more options

That is about enabling the command line in the Browser Console and enabling the Browser Toolbox, so that shouldn't cause this issue. Only a line that sets browser.sessionstore.resume_session_once = true could cause issues with session restore. That leaves options like Firefox not closing properly or a problem with sessionstore.jsonlz4 in the profile folder.

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

You can check for problems with the sessionstore.jsonlz4 file in the Firefox profile folder that stores session data.

  • delete sessionstore.jsonlz4 and sessionstore.js

When sessionstore.jsonlz4 is deleted you lose pinned-tabs and open tabs and you will have to recreate them, so if necessary make a note or bookmark them. sessionstore.jsonlz4 is only present in the Firefox profile folder when Firefox is closed.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

Được chỉnh sửa bởi cor-el vào

more options

Neither of these options has worked. I deleted both of these files and used the exit button in the 3-bar menu and it did not work. I have discovered that my computer does this with all web browsers on my computer (Chrome, Firefox, and Edge). Firefox also always pops up with the window that says "Firefox is running but not responding" whenever I try to open a link from another application.

Edit: I also noticed that there is a file called Telemetry.FailedProfileLocks.txt. The number in this file increases each time Firefox closes after I start it up. I tried deleting the parent.lock file but it did nothing.

Được chỉnh sửa bởi Luke Shuttleworth vào

more options

What is the content of sessionCheckpoints.json in the profile folder ?

This file stores the progress of closing Firefox and all tasks should have finished properly.

more options

The sessionCheckpoints.json file says: {"profile-after-change":true,"final-ui-startup":true,"sessionstore-windows-restored":true}

Edit: I opened and closed firefox again and now it says: {"profile-after-change":true,"final-ui-startup":true,"sessionstore-windows-restored":true,"quit-application-granted":true,"quit-application":true,"sessionstore-final-state-write-complete":true,"profile-change-net-teardown":true,"profile-change-teardown":true,"profile-before-change":true}

Được chỉnh sửa bởi Luke Shuttleworth vào

more options

I have also noticed that this happens with all browsers accept internet explorer on my computer. This makes me think that it is a problem with windows, not firefox.

more options

I assume you close all tabs before quitting. If so, you may also have to delete "All browsing and download history".