Index: content/browser/worker_host/worker_process_host.cc |
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc |
index 8a3882b9a0d52bcaa141e6ca45d954ea9e0a1381..dc4a8bc848eb82b7b5ee349088934bd658cd410e 100644 |
--- a/content/browser/worker_host/worker_process_host.cc |
+++ b/content/browser/worker_host/worker_process_host.cc |
@@ -622,7 +622,8 @@ bool WorkerProcessHost::WorkerInstance::Matches( |
if (closed_) |
return false; |
- // Have to match the same ResourceContext. |
+ // ResourceContext equivalence is being used as a proxy to ensure we only |
+ // matched shared workers within the same BrowserContext. |
if (resource_context_ != resource_context) |
return false; |