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

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

Issue 2071433003: Reland: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised 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 ba2707c905539ecc4f30c0203b9def9ff8eb99c9..4b7509754fc387908a83a7916bdfab0e13557248 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -242,7 +242,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