Skip to content

Commit

Permalink
fix: Raise localStorage quota to 4GB (ref electron#8337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobq committed Nov 6, 2018
1 parent 87565ec commit 09eb84b
Show file tree
Hide file tree
Showing 3 changed files with 21 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-20181105",
"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
19 changes: 19 additions & 0 deletions patches/common/chromium/dom_storage_limit_increase.patch
@@ -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

0 comments on commit 09eb84b

Please sign in to comment.