Bug 1433357 - Part 2: Suppress upload-file-dialog proxy bypass in Linux r=karlt

--HG--
extra : rebase_source : ee2386e3540f44566ac1f5c21199a817cc55a892
This commit is contained in:
Arthur Edelstein 2018-02-02 14:44:00 +02:00
parent 62da146e06
commit f54d08d271

View File

@ -402,9 +402,14 @@ nsFilePicker::Open(nsIFilePickerShownCallback *aCallback)
GTK_RESPONSE_ACCEPT,
GTK_RESPONSE_CANCEL,
-1);
// If we have --enable-proxy-bypass-protection, then don't allow
// remote URLs to be used.
#ifndef MOZ_PROXY_BYPASS_PROTECTION
if (mAllowURLs) {
gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(file_chooser), FALSE);
}
#endif
if (action == GTK_FILE_CHOOSER_ACTION_OPEN || action == GTK_FILE_CHOOSER_ACTION_SAVE) {
GtkWidget *img_preview = gtk_image_new();