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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 2061203002: WIP Reland: service worker: Don't control a subframe of an insecure context Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maybe fix drmemory Created 4 years, 6 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
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index 3d9818d715974fbe0db3488ff8ef4eadb1041035..d35a10715ec9b7279f544a2b8366c881806fdfd6 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -241,7 +241,8 @@ EmbeddedSharedWorkerStub::createServiceWorkerNetworkProvider(
// we can observe its requests.
std::unique_ptr<ServiceWorkerNetworkProvider> provider(
new ServiceWorkerNetworkProvider(
- route_id_, SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER));
+ route_id_, SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER,
+ true /* is_parent_frame_secure */));
// The provider is kept around for the lifetime of the DataSource
// and ownership is transferred to the DataSource.

Powered by Google App Engine
This is Rietveld 408576698