Skip to content

Commit

Permalink
fix: Increase localStorage quota (ref electron#8337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobq committed Nov 6, 2018
1 parent ece4c81 commit 2fe8fa5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "electron",
"version": "4.0.0-nightly.20181010",
"version": "4.0.0-jrq-20181106",
"repository": "https://github.com/electron/electron",
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions patches/common/chromium/.patches
Expand Up @@ -11,6 +11,7 @@ browser_plugin_wheel.patch
can_create_window.patch
compositor_delegate.patch
disable_hidden.patch
dom_storage_limit_increase.patch
dom_storage_map.patch
frame_host_manager.patch
net_url_request_job.patch
Expand Down
25 changes: 25 additions & 0 deletions patches/common/chromium/dom_storage_limit_increase.patch
@@ -0,0 +1,25 @@
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..2aab2b95cf0b 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<size_t>::max(); // Raise limit for Electron

// In the browser process we allow some overage to
// accomodate concurrent writes from different renderers
--
2.11.0

0 comments on commit 2fe8fa5

Please sign in to comment.