зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 1dab189824bf (bug 1828627) for causing build bustages on Storage.cpp.
This commit is contained in:
Родитель
07ffac4db1
Коммит
c42ff13245
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче