Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Disable onboarding prompt ("Open previous tabs?") FF 117

  • 3 replies
  • 0 have this problem
  • 200 views
  • Last reply by cor-el

We've recently migrated our Electron app to running a firefox kiosk application on our IoT devices. And one thing that has been happning is that this "Open previous tabs?" banner shows up after closing/reopening firefox. We've configured the following:

lockPref("browser.sessionstore.max_tabs_undo", 0); lockPref("browser.sessionstore.max_windows_undo", 0); lockPref("browser.sessionstore.max_resumed_crashes", 0); lockPref("browser.sessionstore.resume_from_crash", false); lockPref("browser.sessionstore.collect_session_storage", false); lockPref("browser.sessionstore.restore_on_demand", false);

But the banner (which seems to be for onboarding users) does still appear, does anyone know what preferences we are missing?

We've recently migrated our Electron app to running a firefox kiosk application on our IoT devices. And one thing that has been happning is that this "Open previous tabs?" banner shows up after closing/reopening firefox. We've configured the following: lockPref("browser.sessionstore.max_tabs_undo", 0); lockPref("browser.sessionstore.max_windows_undo", 0); lockPref("browser.sessionstore.max_resumed_crashes", 0); lockPref("browser.sessionstore.resume_from_crash", false); lockPref("browser.sessionstore.collect_session_storage", false); lockPref("browser.sessionstore.restore_on_demand", false); But the banner (which seems to be for onboarding users) does still appear, does anyone know what preferences we are missing?
Attached screenshots

Chosen solution

Add this line:

lockPref("browser.startup.couldRestoreSession.count", -1);

Read this answer in context 👍 2

All Replies (3)

Chosen Solution

Add this line:

lockPref("browser.startup.couldRestoreSession.count", -1);

Thanks zeroknight! From the tests I did locally this does indeed remove the banner