forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Raise localStorage quota to 4GB (ref electron#8337)
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Jacob Quant <jacobq@gmail.com> | ||
Date: Mon, 5 Nov 2018 14:42:47 -0600 | ||
Subject: dom_storage_limit_increase.patch | ||
|
||
|
||
diff --git a/content/common/dom_storage/dom_storage_types.h b/content/common/dom_storage/dom_storage_types.h | ||
index e87afe5b8ee0..21ae3f55b029 100644 | ||
--- a/content/common/dom_storage/dom_storage_types.h | ||
+++ b/content/common/dom_storage/dom_storage_types.h | ||
@@ -21,7 +21,7 @@ typedef std::map<base::string16, base::NullableString16> DOMStorageValuesMap; | ||
|
||
// The quota for each storage area. | ||
// This value is enforced in renderer processes and the browser process. | ||
-const size_t kPerStorageAreaQuota = 10 * 1024 * 1024; | ||
+const size_t kPerStorageAreaQuota = (4 * 1024 * 1024 * 1024) - 1; // Electron: raise limit from 10MiB to 4GiB | ||
|
||
// In the browser process we allow some overage to | ||
// accomodate concurrent writes from different renderers |