Skip to content

Commit 595cc81

Browse files
committed
Don't get default values when MEDIA_STREAM is disabled.
Remove when https://bugs.webkit.org/show_bug.cgi?id=275611 is fixed upstream.
1 parent d806d04 commit 595cc81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,11 @@ static void webkit_settings_class_init(WebKitSettingsClass* klass)
14031403
"enable-media-stream",
14041404
_("Enable MediaStream"),
14051405
_("Whether MediaStream content should be handled"),
1406+
#if ENABLE(MEDIA_STREAM)
14061407
FEATURE_DEFAULT(MediaStreamEnabled),
1408+
#else
1409+
FALSE,
1410+
#endif
14071411
readWriteConstructParamFlags);
14081412

14091413
/**
@@ -1419,7 +1423,11 @@ static void webkit_settings_class_init(WebKitSettingsClass* klass)
14191423
g_param_spec_boolean("enable-mock-capture-devices",
14201424
_("Enable mock capture devices"),
14211425
_("Whether we expose mock capture devices or not"),
1426+
#if ENABLE(MEDIA_STREAM)
14221427
FEATURE_DEFAULT(MockCaptureDevicesEnabled),
1428+
#else
1429+
FALSE,
1430+
#endif
14231431
readWriteConstructParamFlags);
14241432

14251433
/**

0 commit comments

Comments
 (0)