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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 1948223005: ChildProcessSecurityPolicy::CanAccessDataForOrigin workaround to suppress bad kills (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 | content/browser/renderer_host/media/webrtc_identity_service_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_security_policy_impl.cc
diff --git a/content/browser/child_process_security_policy_impl.cc b/content/browser/child_process_security_policy_impl.cc
index 34bad5ad0e55ab8d4a4ce2b2b788f511271de1e8..bd84239b04ff44c1301c386013ad8bd70e1a1e01 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -817,8 +817,11 @@ bool ChildProcessSecurityPolicyImpl::CanAccessDataForOrigin(int child_id,
const GURL& gurl) {
base::AutoLock lock(lock_);
SecurityStateMap::iterator state = security_state_.find(child_id);
- if (state == security_state_.end())
- return false;
+ if (state == security_state_.end()) {
+ // TODO(nick): Returning true instead of false here is a temporary
+ // workaround for https://crbug.com/600441
+ return true;
+ }
return state->second->CanAccessDataForOrigin(gurl);
}
« no previous file with comments | « no previous file | content/browser/renderer_host/media/webrtc_identity_service_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698