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: Increase localStorage quota (ref electron#8337)
- Loading branch information
Showing
3 changed files
with
28 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,26 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Jacob Quant <jacob.quant@kanomaxfmt.com> | ||
Date: Tue, 6 Nov 2018 06:33:13 -0600 | ||
Subject: dom_storage_limit_increase.patch | ||
|
||
|
||
--- | ||
content/common/dom_storage/dom_storage_types.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/content/common/dom_storage/dom_storage_types.h b/content/common/dom_storage/dom_storage_types.h | ||
index e87afe5b8ee0..0af9484ab5a3 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 = std::numeric_limits<int>::max(); // Gets cast to int for kMaxBytesPerHour | ||
|
||
// In the browser process we allow some overage to | ||
// accomodate concurrent writes from different renderers | ||
-- | ||
2.11.0 | ||
|