Pier Angelo Vendrame pushed to branch base-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
c0f52a3e by Pier Angelo Vendrame at 2024-02-13T15:16:17+01:00
Bug 42376: Pass the locale list when constructing l10n in datetimebox
The datetime input is inconsistent with other inputs when using spoof
English: its placeholder is not translated, unlike the default values
and texts of all the other inputs.
- - - - -
1 changed file:
- toolkit/content/widgets/datetimebox.js
Changes:
=====================================
toolkit/content/widgets/datetimebox.js
=====================================
@@ -22,7 +22,9 @@ this.DateTimeBoxWidget = class {
// createEditFieldAndAppend() call.
this.l10n = new this.window.DOMLocalization(
["toolkit/global/datetimebox.ftl"],
- /* aSync = */ true
+ /* aSync = */ true,
+ undefined,
+ this.window.getWebExposedLocales()
);
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/c0f52a3…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/c0f52a3…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
a7f6c970 by Pier Angelo Vendrame at 2024-02-13T14:59:52+01:00
Bug 42376: Pass the locale list when constructing l10n in datetimebox
The datetime input is inconsistent with other inputs when using spoof
English: its placeholder is not translated, unlike the default values
and texts of all the other inputs.
- - - - -
1 changed file:
- toolkit/content/widgets/datetimebox.js
Changes:
=====================================
toolkit/content/widgets/datetimebox.js
=====================================
@@ -22,7 +22,9 @@ this.DateTimeBoxWidget = class {
// createEditFieldAndAppend() call.
this.l10n = new this.window.DOMLocalization(
["toolkit/global/datetimebox.ftl"],
- /* aSync = */ true
+ /* aSync = */ true,
+ undefined,
+ this.window.getWebExposedLocales()
);
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a7f6c97…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/a7f6c97…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / RBM
Commits:
10c6b24e by Nicolas Vigier at 2024-02-08T13:26:40+01:00
Bug 40071: Add an option to create zip files using 7z
- - - - -
2 changed files:
- doc/options_misc.asc
- lib/RBM/DefaultConfig.pm
Changes:
=====================================
doc/options_misc.asc
=====================================
@@ -41,6 +41,11 @@ zip::
and a +zip_args+ arguments which is usually the destination zip
file, and optionally other zip options. By default, GNU options
are used in find, but you can disable that with +gnu_utils+.
+ The 'zip' command will be used to create the zip file, unless
+ +use_7z+ is set, in which case '7z' will be used instead. In this
+ case, +7z_bin+ can be used to select the '7z' command (for cases
+ where the command is '7zz' instead of '7z') and +7z_opts+ can
+ be used to set additional options to the '7z' command.
install_package::
This option can be used in a script when you need to install a
=====================================
lib/RBM/DefaultConfig.pm
=====================================
@@ -597,14 +597,24 @@ TAR_END
####
####
####
- zip => <<ZIP_END,
+ '7z_bin' => '7z',
+ zip => <<ZIP_END,
[%- SET src = c('zip_src', { error_if_undef => 1 }) -%]
[% USE date -%]
+[% IF c("use_7z") -%]
+ tmp7z=\$(mktemp)
+[% END -%]
find [% src.join(' ') %] -exec touch -m -t [% date.format(c('timestamp'), format = '%Y%m%d%H%M') %] -- {} +
find [% src.join(' ') %] [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 700 {} \\;
find [% src.join(' ') %] ! [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 600 {} \\;
find [% src.join(' ') %] | sort | \
+[% IF c("use_7z") -%]
+ cat > "\$tmp7z"
+ [% c('7z_bin') %] a -tzip -spf [% c('7z_opts') %] [% c('zip_args', { error_if_undef => 1 }) %] "@\$tmp7z"
+ rm -f "\$tmp7z"
+[% ELSE -%]
zip -q -@ -X [% c('zip_args', { error_if_undef => 1 }) %]
+[% END -%]
ZIP_END
####
####
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/10c6b24e90e3dc9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/10c6b24e90e3dc9…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / RBM
Commits:
efd874ab by Nicolas Vigier at 2024-02-08T13:13:58+01:00
Bug 40072: Move capture_exec to a separate module
Because the RBM and RBM::DefaultConfig modules have circular dependencies,
exporting functions from RBM to RBM::DefaultConfig doesn't work, which
means that part of the changes for rbm#40068 didn't work. We could fix
that by using `RBM::capture_exec` instead of `capture_exec`. An other
solution is to make a separate module for `capture_exec`. Since the RBM
modules is becoming big, I think it's a good idea to move independent
parts to a separate modules.
- - - - -
3 changed files:
- lib/RBM.pm
- + lib/RBM/CaptureExec.pm
- lib/RBM/DefaultConfig.pm
Changes:
=====================================
lib/RBM.pm
=====================================
@@ -10,7 +10,6 @@ use YAML::XS qw(LoadFile);
use Template;
use File::Basename;
use IO::Handle;
-use Capture::Tiny qw(capture);
use File::Temp;
use File::Copy;
use File::Copy::Recursive qw(fcopy);
@@ -18,6 +17,7 @@ use File::Path qw(make_path);
use File::Basename;
use String::ShellQuote;
use Sort::Versions;
+use RBM::CaptureExec qw(capture_exec);
use RBM::DefaultConfig;
use Digest::SHA qw(sha256_hex);
use Data::UUID;
@@ -29,7 +29,7 @@ use feature "state";
BEGIN {
require Exporter;
our @ISA = qw(Exporter);
- our @EXPORT = qw(exit_error capture_exec);
+ our @EXPORT = qw(exit_error);
}
our $config;
@@ -308,15 +308,6 @@ sub exit_error {
exit (exists $_[1] ? $_[1] : 1);
}
-sub capture_exec {
- my @cmd = @_;
- my ($stdout, $stderr, $exit) = capture {
- system(@cmd);
- };
- return ($stdout, $stderr, $exit == 0, $exit) if wantarray();
- return $stdout;
-}
-
sub set_git_gpg_wrapper {
my ($project) = @_;
my $w = project_config($project, 'gpg_wrapper');
=====================================
lib/RBM/CaptureExec.pm
=====================================
@@ -0,0 +1,21 @@
+package RBM::CaptureExec;
+
+use Capture::Tiny qw(capture);
+
+BEGIN {
+ require Exporter;
+ our @ISA = qw(Exporter);
+ our @EXPORT = qw(capture_exec);
+ our @EXPORT_OK = qw(capture_exec);
+}
+
+sub capture_exec {
+ my @cmd = @_;
+ my ($stdout, $stderr, $exit) = capture {
+ system(@cmd);
+ };
+ return ($stdout, $stderr, $exit == 0, $exit) if wantarray();
+ return $stdout;
+}
+
+1;
=====================================
lib/RBM/DefaultConfig.pm
=====================================
@@ -10,7 +10,8 @@ BEGIN {
}
use File::Basename;
-use RBM qw(capture_exec);
+use RBM;
+use RBM::CaptureExec qw(capture_exec);
use Cwd qw(getcwd);
use File::Temp;
use File::Path qw(make_path);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/efd874abee2d4af…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/commit/efd874abee2d4af…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
614fe28a by Pier Angelo Vendrame at 2024-02-08T14:13:14+00:00
fixup! Bug 41668: Tweaks to the Base Browser updater for Tor Browser
Keep the postupdate disabled on Tor Browser
- - - - -
1 changed file:
- toolkit/mozapps/update/updater/updater.cpp
Changes:
=====================================
toolkit/mozapps/update/updater/updater.cpp
=====================================
@@ -2955,7 +2955,7 @@ int LaunchCallbackAndPostProcessApps(int argc, NS_tchar** argv,
#endif
if (argc > callbackIndex) {
-#if defined(XP_WIN) && !defined(BASE_BROWSER_UPDATE)
+#if defined(XP_WIN) && !defined(TOR_BROWSER)
if (gSucceeded) {
if (!LaunchWinPostProcess(gInstallDirPath, gPatchDirPath)) {
fprintf(stderr, "The post update process was not launched");
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/614fe28…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/614fe28…
You're receiving this email because of your account on gitlab.torproject.org.