Index: content/child/runtime_features.cc |
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc |
index aebad1cc88855694309f4056fa9421b01d313dd7..158ec7c99c7ceadfd8e67eab1cb40adfdbc3bfb8 100644 |
--- a/content/child/runtime_features.cc |
+++ b/content/child/runtime_features.cc |
@@ -44,6 +44,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() { |
WebRuntimeFeatures::enableDataListElement(false); |
// Android does not yet support the Web Notification API. crbug.com/115320 |
WebRuntimeFeatures::enableNotifications(false); |
+ // Android does not yet support SharedWorker. crbug.com/154571 |
+ WebRuntimeFeatures::enableSharedWorker(false); |
#endif // defined(OS_ANDROID) |
} |
@@ -80,6 +82,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( |
if (command_line.HasSwitch(switches::kDisableUnprefixedMediaSource)) |
WebRuntimeFeatures::enableMediaSource(false); |
+ if (command_line.HasSwitch(switches::kDisableSharedWorkers)) |
+ WebRuntimeFeatures::enableSharedWorker(false); |
+ |
#if defined(OS_ANDROID) |
if (command_line.HasSwitch(switches::kDisableWebRTC)) { |
WebRuntimeFeatures::enableMediaStream(false); |