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

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

Issue 874983003: IndexedDB: Reject bad OnDestroyed messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index 02bf1977907d8cb56e95ef1844e5865073f926c9..302adbcca2413eee0f69fab02339186730917bac 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -614,7 +614,10 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnDestroyed(
int32 ipc_object_id) {
DCHECK(
parent_->indexed_db_context_->TaskRunner()->RunsTasksOnCurrentThread());
- IndexedDBConnection* connection = map_.Lookup(ipc_object_id);
+ IndexedDBConnection* connection =
+ parent_->GetOrTerminateProcess(&map_, ipc_object_id);
cmumford 2015/01/26 19:52:15 This still dies on non-official builds right? Will
jsbell 2015/01/26 19:57:22 Given that we do this for the other IPCs, but *thi
+ if (!connection)
+ return;
if (connection->IsConnected())
connection->Close();
parent_->Context()
« 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