d56617e5d0
* chore: avoid appending git version to the exported patches * fix no-eol at end of v8 patch
23 lines
1 KiB
Diff
23 lines
1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Cheng Zhao <zcbenz@gmail.com>
|
|
Date: Thu, 20 Sep 2018 17:45:55 -0700
|
|
Subject: dom_storage_map.patch
|
|
|
|
|
|
diff --git a/content/common/dom_storage/dom_storage_map.cc b/content/common/dom_storage/dom_storage_map.cc
|
|
index fd088fb170bead6452ded14016f21f0c29659e03..a9e4b3375e9b614ed1e8b737a30f4436adb12c37 100644
|
|
--- a/content/common/dom_storage/dom_storage_map.cc
|
|
+++ b/content/common/dom_storage/dom_storage_map.cc
|
|
@@ -185,10 +185,12 @@ bool DOMStorageMap::SetItemInternal(MapType* map_type,
|
|
size_t new_item_size = size_in_storage(key, value);
|
|
size_t new_storage_used = storage_used_ - old_item_size + new_item_size;
|
|
|
|
+#if 0 // Disable localStorage size limit for Electron.
|
|
// Only check quota if the size is increasing, this allows
|
|
// shrinking changes to pre-existing files that are over budget.
|
|
if (new_item_size > old_item_size && new_storage_used > quota_)
|
|
return false;
|
|
+#endif
|
|
|
|
(*map_type)[key] = value;
|
|
ResetKeyIterator();
|