boklm pushed to branch main at The Tor Project / Applications / RBM
Commits:
063c41f9 by Nicolas Vigier at 2023-10-11T14:22:35+02:00
Bug 40062: Copy input_files directories recursively
When an input_files is a directory, instead of passing each files
included in the directory individually to remote_put, we just pass the
directory and expect remote_put to copy it recursively.
Since in the case of container, each call to remote_put is a significant
overhead, this makes it much faster when including a directory
containing many files.
- - - - -
0a47c75f by Nicolas Vigier at 2023-10-11T14:32:44+02:00
Bug 40062: Avoid using run_chroot in copy_file_to
When copying files to a container directory, we were running `chown` on
the files using run_chroot, which in addition to using the chroot
command is doing other things like setting up mount points and other
things not needed for running `chown`. Simply using `chroot` should be
enough and faster.
- - - - -
2 changed files:
- container
- lib/RBM.pm
Changes:
=====================================
container
=====================================
@@ -110,7 +110,7 @@ sub copy_file_to {
my $filename = fileparse($src);
rcopy($src, "$rootfsdir/$dst/$filename")
or exit_error "Failed to copy $src to $rootfsdir/$dst/$filename";
- return run_chroot($rootfsdir, ['chown', '-R', $owner, $dst]);
+ return system('/usr/sbin/chroot', $rootfsdir, 'chown', '-R', $owner, $dst);
}
sub copy_file_from {
=====================================
lib/RBM.pm
=====================================
@@ -1091,7 +1091,8 @@ sub input_files {
my $file_type = -d $fname ? 'directory' : 'file';
print "Using $file_type $fname\n";
mkdir dirname("$dest_dir/$name");
- push @res_copy, recursive_copy($fname, $name, $dest_dir, $action);
+ recursive_copy($fname, $name, $dest_dir, $action);
+ push @res_copy, $name;
}
chdir $old_cwd;
RETURN_RES:
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/compare/fb51b232ea9281…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/rbm/-/compare/fb51b232ea9281…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build
Commits:
bf0dfe66 by Pier Angelo Vendrame at 2023-10-11T09:51:01+02:00
Bug 40974: Fix firefox-android with the release target.
In the firefox-android project we look for the geckoview artifacts to
detect its version.
For alpha and nightly its directory incldues the channel, so we were
looking for `geckoview-release-omni`, but for release the directory is
`geckoview-omni` only.
- - - - -
1 changed file:
- projects/firefox-android/build
Changes:
=====================================
projects/firefox-android/build
=====================================
@@ -53,7 +53,12 @@ cd $builddir-[% c('version') %]
patch -p1 < $rootdir/repos.diff
sed -i 's|^\(val VERSION = \).*|\1"[% c("var/as_version") %]"|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
sed -i 's|^\(val CHANNEL = \).*|\1ApplicationServicesChannel.RELEASE|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
-gv_version=$(find "$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
+[% IF c("var/channel") == "release" -%]
+ gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-omni"
+[% ELSE -%]
+ gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni"
+[% END -%]
+gv_version=$(find "$gv_dir" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
sed -i "s|\(\s*const val version = \).*|\1\"$gv_version\"|" android-components/plugins/dependencies/src/main/java/Gecko.kt
sed -i 's|\(\s*val channel = \).*|\1GeckoChannel.[% c("var/variant") FILTER upper %]|' android-components/plugins/dependencies/src/main/java/Gecko.kt
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/b…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/b…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
bf0dfe66 by Pier Angelo Vendrame at 2023-10-11T09:51:01+02:00
Bug 40974: Fix firefox-android with the release target.
In the firefox-android project we look for the geckoview artifacts to
detect its version.
For alpha and nightly its directory incldues the channel, so we were
looking for `geckoview-release-omni`, but for release the directory is
`geckoview-omni` only.
- - - - -
1 changed file:
- projects/firefox-android/build
Changes:
=====================================
projects/firefox-android/build
=====================================
@@ -53,7 +53,12 @@ cd $builddir-[% c('version') %]
patch -p1 < $rootdir/repos.diff
sed -i 's|^\(val VERSION = \).*|\1"[% c("var/as_version") %]"|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
sed -i 's|^\(val CHANNEL = \).*|\1ApplicationServicesChannel.RELEASE|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
-gv_version=$(find "$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
+[% IF c("var/channel") == "release" -%]
+ gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-omni"
+[% ELSE -%]
+ gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni"
+[% END -%]
+gv_version=$(find "$gv_dir" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
sed -i "s|\(\s*const val version = \).*|\1\"$gv_version\"|" android-components/plugins/dependencies/src/main/java/Gecko.kt
sed -i 's|\(\s*val channel = \).*|\1GeckoChannel.[% c("var/variant") FILTER upper %]|' android-components/plugins/dependencies/src/main/java/Gecko.kt
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/b…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/b…
You're receiving this email because of your account on gitlab.torproject.org.
richard pushed to branch mullvad-browser-115.3.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
88e111c6 by Henry Wilkes at 2023-10-11T18:31:30+00:00
fixup! Bug 41454: Move focus after calling openPreferences for a sub-category.
Bug 42167: Make the auto-focus more reliable.
No longer use the setTimeout to wait a loop, but instead wait for the
"load" event.
- - - - -
1 changed file:
- browser/components/preferences/preferences.js
Changes:
=====================================
browser/components/preferences/preferences.js
=====================================
@@ -482,14 +482,23 @@ async function scrollAndHighlight(subcategory, category) {
// We assign a tabindex=-1 to the element so that we can focus it. This allows
// us to move screen reader's focus to an arbitrary position on the page.
- // See tor-browser#41454 and bug 1799153.
- element.setAttribute("tabindex", "-1");
- // The element is not always immediately focusable, so we wait until the next
- // loop.
- setTimeout(() => {
+ // See tor-browser#41454 and mozilla bug 1799153.
+ const doFocus = () => {
+ element.setAttribute("tabindex", "-1");
Services.focus.setFocus(element, Services.focus.FLAG_NOSCROLL);
+ // Immediately remove again now that it has focus.
element.removeAttribute("tabindex");
- });
+ };
+ // The element is not always immediately focusable, so we wait until document
+ // load.
+ if (document.readyState === "complete") {
+ doFocus();
+ } else {
+ // Wait until document load to move focus.
+ // NOTE: This should be called after DOMContentLoaded, where the searchInput
+ // is focused.
+ window.addEventListener("load", doFocus, { once: true });
+ }
scrollContentTo(header);
element.classList.add("spotlight");
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/88e…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/88e…
You're receiving this email because of your account on gitlab.torproject.org.