summaryrefslogtreecommitdiffstats
path: root/content/child/runtime_features.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/child/runtime_features.cc')
-rw-r--r--content/child/runtime_features.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index aebad1c..158ec7c9 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);