diff --git a/dom/storage/Storage.cpp b/dom/storage/Storage.cpp index 9f35daa35a0a..deda546fcaaa 100644 --- a/dom/storage/Storage.cpp +++ b/dom/storage/Storage.cpp @@ -20,6 +20,8 @@ namespace mozilla::dom { +static const char kStorageEnabled[] = "dom.storage.enabled"; + NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Storage, mWindow, mPrincipal, mStoragePrincipal) @@ -56,7 +58,7 @@ Storage::~Storage() = default; /* static */ bool Storage::StoragePrefIsEnabled() { - return StaticPrefs::dom_storage_enabled(); + return mozilla::Preferences::GetBool(kStorageEnabled); } int64_t Storage::GetSnapshotUsage(nsIPrincipal& aSubjectPrincipal, diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 16629569e053..36e6b0609c5b 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -3990,11 +3990,6 @@ value: false mirror: always -- name: dom.storage.enabled - type: RelaxedAtomicBool - value: true - mirror: always - - name: dom.workers.pFetch.enabled type: RelaxedAtomicBool value: true diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index b0a110935760..84ba6bca9793 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -867,6 +867,7 @@ pref("dom.popup_allowed_events", "change click dblclick auxclick mousedown mouse pref("dom.serviceWorkers.disable_open_click_delay", 1000); +pref("dom.storage.enabled", true); pref("dom.storage.shadow_writes", false); pref("dom.storage.snapshot_prefill", 16384); pref("dom.storage.snapshot_gradual_prefill", 4096);