summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-08-15 06:03:42 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-08-15 18:22:56 -0400
commitf7fced09da8e318f3c45f3cdc65674345460f918 (patch)
treedb0604e235a1b0bc8812b30f448da890780fa562 /modules
parent47c48dfcb87a574f6b96f3abf3ed14b9b08b2371 (diff)
downloadUXP-f7fced09da8e318f3c45f3cdc65674345460f918.tar
UXP-f7fced09da8e318f3c45f3cdc65674345460f918.tar.gz
UXP-f7fced09da8e318f3c45f3cdc65674345460f918.tar.lz
UXP-f7fced09da8e318f3c45f3cdc65674345460f918.tar.xz
UXP-f7fced09da8e318f3c45f3cdc65674345460f918.zip
Issue #999 - Disable native file picker by default.
Diffstat (limited to 'modules')
-rw-r--r--modules/libpref/init/all.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index cd4284a9e..e69a985ce 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4012,6 +4012,12 @@ pref("autocomplete.ungrab_during_mode_switch", true);
// toggling to use the XUL filepicker
pref("ui.allow_platform_file_picker", true);
+// Allow for using the native GTK file picker. If the application is not run
+// with GTK_USE_PORTAL=1 this pref has no effect.
+#ifdef MOZ_WIDGET_GTK
+pref("widget.allow-gtk-native-file-chooser", false);
+#endif
+
pref("helpers.global_mime_types_file", "/etc/mime.types");
pref("helpers.global_mailcap_file", "/etc/mailcap");
pref("helpers.private_mime_types_file", "~/.mime.types");