Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9407)

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 1690093003: Indexed DB: Remove transaction throttle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 3196cd16d83bcd3843c77723cfa19d90390857bc..d90af34cae2fea43acb43a3348b4f29c9018fb59 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -1672,18 +1672,6 @@ void IndexedDBDatabase::CreateTransaction(
"WebCore.IndexedDB.Database.OutstandingTransactionCount",
transactions_.size());
- // Throttle transaction creation so that a renderer in a tight loop can't
- // cause browser memory to grow unbounded by creating transactions faster
- // than they can be processed.
- const size_t kMaxTransactionCount = 256;
- if (transactions_.size() >= kMaxTransactionCount) {
- connection->callbacks()->OnAbort(
- transaction_id, IndexedDBDatabaseError(
- blink::WebIDBDatabaseExceptionUnknownError,
- "Internal error: Too many transactions queued."));
- return;
- }
-
// The transaction will add itself to this database's coordinator, which
// manages the lifetime of the object.
TransactionCreated(IndexedDBClassFactory::Get()->CreateIndexedDBTransaction(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698