зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1828627 - Make dom.storage.enabled a static pref r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D178593
This commit is contained in:
Родитель
1a150e6149
Коммит
07ffac4db1
|
@ -20,8 +20,6 @@
|
|||
|
||||
namespace mozilla::dom {
|
||||
|
||||
static const char kStorageEnabled[] = "dom.storage.enabled";
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(Storage, mWindow, mPrincipal,
|
||||
mStoragePrincipal)
|
||||
|
||||
|
@ -58,7 +56,7 @@ Storage::~Storage() = default;
|
|||
|
||||
/* static */
|
||||
bool Storage::StoragePrefIsEnabled() {
|
||||
return mozilla::Preferences::GetBool(kStorageEnabled);
|
||||
return StaticPrefs::dom_storage_enabled();
|
||||
}
|
||||
|
||||
int64_t Storage::GetSnapshotUsage(nsIPrincipal& aSubjectPrincipal,
|
||||
|
|
|
@ -3990,6 +3990,11 @@
|
|||
value: false
|
||||
mirror: always
|
||||
|
||||
- name: dom.storage.enabled
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
- name: dom.workers.pFetch.enabled
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
|
|
|
@ -867,7 +867,6 @@ 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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче