Skip to content

Commit

Permalink
Fix runtime instances not closing properly (fixes #559)
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Sep 13, 2024
1 parent 581e9b3 commit 0b06be2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion native/userchrome/profile/chrome/pwa/boot.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ function launchSite (siteConfig, urlList, isStartup) {
// Properly disable Firefox Session Restore and Private Window Separation
Services.prefs.getDefaultBranch(null).setBoolPref('browser.sessionstore.resume_from_crash', false);
Services.prefs.getDefaultBranch(null).setIntPref('browser.sessionstore.max_resumed_crashes', 0);
Services.prefs.getDefaultBranch(null).setIntPref('browser.sessionstore.idleDelay', -1);
Services.prefs.getDefaultBranch(null).setIntPref('browser.sessionstore.max_tabs_undo', 0);
Services.prefs.getDefaultBranch(null).setIntPref('browser.sessionstore.max_windows_undo', 0);
Services.prefs.getDefaultBranch(null).setBoolPref('browser.privateWindowSeparation.enabled', false);
Services.prefs.getDefaultBranch(null).setBoolPref('browser.privacySegmentation.createdShortcut', true);

Expand Down
3 changes: 2 additions & 1 deletion native/userchrome/profile/chrome/pwa/content/browser.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1887,7 +1887,8 @@ class PwaBrowser {
xPref.set('browser.tabs.warnOnClose', false, true);
xPref.set('browser.sessionstore.resume_from_crash', false, true);
xPref.set('browser.sessionstore.max_resumed_crashes', 0, true);
xPref.set('browser.sessionstore.idleDelay', -1, true);
xPref.set('browser.sessionstore.max_tabs_undo', 0, true);
xPref.set('browser.sessionstore.max_windows_undo', 0, true);
xPref.set('browser.shell.checkDefaultBrowser', false, true);
xPref.set('browser.startup.upgradeDialog.enabled', false, true);
xPref.set('browser.aboutwelcome.enabled', false, true);
Expand Down

0 comments on commit 0b06be2

Please sign in to comment.