Skip to content

Commit 30b363a

Browse files
Bug 1883278 - Remove browser.sessionstore.collect_session_storage and browser.sessionstore.collect_zoom. r=farre,sessionstore-reviewers
These prefs don't do anything unless browser.sessionstore.platform_collection is enabled, but we don't need the granularity that they provide. Let's just use have the one browser.sessionstore.platform_collection pref control everything. Differential Revision: https://phabricator.services.mozilla.com/D203374
1 parent 8226bad commit 30b363a

File tree

4 files changed

+2
-25
lines changed

4 files changed

+2
-25
lines changed

browser/app/profile/firefox.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,6 @@ pref("browser.sessionstore.upgradeBackup.maxUpgradeBackups", 3);
13001300
pref("browser.sessionstore.debug", false);
13011301
// Forget closed windows/tabs after two weeks
13021302
pref("browser.sessionstore.cleanup.forget_closed_after", 1209600000);
1303-
// Platform collects session storage data for session store
1304-
pref("browser.sessionstore.collect_session_storage", true);
13051303

13061304
// temporary pref that will be removed in a future release, see bug 1836952
13071305
pref("browser.sessionstore.persist_closed_tabs_between_sessions", true);

docshell/base/CanonicalBrowsingContext.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,11 +2579,6 @@ nsresult CanonicalBrowsingContext::WriteSessionStorageToSessionStore(
25792579

25802580
void CanonicalBrowsingContext::UpdateSessionStoreSessionStorage(
25812581
const std::function<void()>& aDone) {
2582-
if (!StaticPrefs::browser_sessionstore_collect_session_storage_AtStartup()) {
2583-
aDone();
2584-
return;
2585-
}
2586-
25872582
using DataPromise = BackgroundSessionStorageManager::DataPromise;
25882583
BackgroundSessionStorageManager::GetData(
25892584
this, StaticPrefs::browser_sessionstore_dom_storage_limit(),

modules/libpref/init/StaticPrefList.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,18 +1665,6 @@
16651665
#endif
16661666
mirror: once
16671667

1668-
# Platform collection of session storage data for session store
1669-
- name: browser.sessionstore.collect_session_storage
1670-
type: bool
1671-
value: @IS_NOT_ANDROID@
1672-
mirror: once
1673-
1674-
# Platform collection of zoom data for session store
1675-
- name: browser.sessionstore.collect_zoom
1676-
type: bool
1677-
value: @IS_NOT_ANDROID@
1678-
mirror: once
1679-
16801668
# Causes SessionStore to ignore non-final update messages from
16811669
# browser tabs that were not caused by a flush from the parent.
16821670
# This is a testing flag and should not be used by end-users.

toolkit/components/sessionstore/SessionStoreChangeListener.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@ void SessionStoreChangeListener::AddEventListeners() {
356356
if (EventTarget* target = GetEventTarget()) {
357357
target->AddSystemEventListener(kInput, this, false);
358358
target->AddSystemEventListener(kScroll, this, false);
359-
if (StaticPrefs::browser_sessionstore_collect_zoom_AtStartup()) {
360-
target->AddSystemEventListener(kResize, this, false);
361-
}
359+
target->AddSystemEventListener(kResize, this, false);
362360
mCurrentEventTarget = target;
363361
}
364362
}
@@ -367,9 +365,7 @@ void SessionStoreChangeListener::RemoveEventListeners() {
367365
if (mCurrentEventTarget) {
368366
mCurrentEventTarget->RemoveSystemEventListener(kInput, this, false);
369367
mCurrentEventTarget->RemoveSystemEventListener(kScroll, this, false);
370-
if (StaticPrefs::browser_sessionstore_collect_zoom_AtStartup()) {
371-
mCurrentEventTarget->RemoveSystemEventListener(kResize, this, false);
372-
}
368+
mCurrentEventTarget->RemoveSystemEventListener(kResize, this, false);
373369
}
374370

375371
mCurrentEventTarget = nullptr;

0 commit comments

Comments
 (0)