Unverified Commit bc1377c3 authored by boklm's avatar boklm
Browse files

Set extensions.torbutton.prompted_language pref

In order to avoid language selection prompt. Before #18019 it was only
shown when opening a new tab. Now it is shown when loading a page.
parent f4dad759
...@@ -693,6 +693,10 @@ sub pre_tests { ...@@ -693,6 +693,10 @@ sub pre_tests {
$tbbinfos->{sha256sum} //= sha256_hex(read_file($tbbinfos->{tbbfile})); $tbbinfos->{sha256sum} //= sha256_hex(read_file($tbbinfos->{tbbfile}));
extract_tbb($tbbinfos); extract_tbb($tbbinfos);
set_tbbpaths($tbbinfos); set_tbbpaths($tbbinfos);
my $prefs_file = "$tbbinfos->{ffprofiledir}/preferences/extension-overrides.js";
open(my $prefs_fh, '>>', $prefs_file);
print $prefs_fh 'pref("extensions.torbutton.prompted_language", true);', "\n";
close $prefs_fh;
chdir $tbbinfos->{tbbdir} || exit_error "Can't enter directory $tbbinfos->{tbbdir}"; chdir $tbbinfos->{tbbdir} || exit_error "Can't enter directory $tbbinfos->{tbbdir}";
copy "$FindBin::Bin/data/cert_override.txt", copy "$FindBin::Bin/data/cert_override.txt",
"TorBrowser/Data/Browser/profile.default/cert_override.txt"; "TorBrowser/Data/Browser/profile.default/cert_override.txt";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment