[GTK] Enable runtime flag for MediaDevices with enable-media-stream property.
authorclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 17:35:53 +0000 (17:35 +0000)
committerclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 17:35:53 +0000 (17:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171730

Reviewed by Michael Catanzaro.

After r215939 the MediaDevices runtime setting has to be enabled
also to use MediaStream / WebRTC.

Enable it as part of the enable-media-stream property of the
WebKitGTK+ API.

* UIProcess/API/gtk/WebKitSettings.cpp:
(webkit_settings_set_enable_media_stream):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216247 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/WebKitSettings.cpp

index e7da1f9..a81806e 100644 (file)
@@ -1,3 +1,19 @@
+2017-05-05  Carlos Alberto Lopez Perez  <clopez@igalia.com>
+
+        [GTK] Enable runtime flag for MediaDevices with enable-media-stream property.
+        https://bugs.webkit.org/show_bug.cgi?id=171730
+
+        Reviewed by Michael Catanzaro.
+
+        After r215939 the MediaDevices runtime setting has to be enabled
+        also to use MediaStream / WebRTC.
+
+        Enable it as part of the enable-media-stream property of the
+        WebKitGTK+ API.
+
+        * UIProcess/API/gtk/WebKitSettings.cpp:
+        (webkit_settings_set_enable_media_stream):
+
 2017-05-05  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Assertion failure in Inspector::RemoteInspector::setRemoteInspectorClient when disposing WebKitWebContext
index b8617ff..9cc7b5c 100644 (file)
@@ -3012,6 +3012,7 @@ void webkit_settings_set_enable_media_stream(WebKitSettings* settings, gboolean
     if (currentValue == enabled)
         return;
 
+    priv->preferences->setMediaDevicesEnabled(enabled);
     priv->preferences->setMediaStreamEnabled(enabled);
     priv->preferences->setPeerConnectionEnabled(enabled);
     g_object_notify(G_OBJECT(settings), "enable-media-stream");