morgan pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
b2ed2b65 by Henry Wilkes at 2024-09-11T02:13:21+00:00
fixup! Bug 7494: Create local home page for TBB.
Bug 43115: Restore search bar height in about:tor.
Also set the inner border radius of the search input to zero.
- - - - -
1 changed file:
- browser/components/abouttor/content/aboutTor.css
Changes:
=====================================
browser/components/abouttor/content/aboutTor.css
=====================================
@@ -143,6 +143,7 @@ body:not(.show-tor-check) #tor-check {
flex: 1 0 auto;
min-width: 200px;
min-height: var(--logo-size);
+ box-sizing: content-box;
margin: 0;
padding-block: var(--form-outer-padding);
padding-inline-end: var(--form-padding);
@@ -153,6 +154,8 @@ body:not(.show-tor-check) #tor-check {
/* Make sure clickable area does not extend beyond the form's border. */
border-start-start-radius: var(--form-radius);
border-end-start-radius: var(--form-radius);
+ border-start-end-radius: 0;
+ border-end-end-radius: 0;
/* Focus and outline styling move to the parent. */
background: none;
border: none;
@@ -162,14 +165,16 @@ body:not(.show-tor-check) #tor-check {
#onionize-toggle {
flex: 0 0 auto;
font-weight: 500;
+ justify-content: center;
padding-block: var(--form-outer-padding);
padding-inline-end: var(--form-outer-padding);
border-start-end-radius: var(--form-radius);
border-end-end-radius: var(--form-radius);
+ border-start-start-radius: 0;
+ border-end-start-radius: 0;
padding-inline-start: 0;
/* Non-clickable gap between input and toggle. */
margin-inline-start: 0.5em;
-
}
@media not ((prefers-contrast) or (forced-colors)) {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b2ed2b6…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/b2ed2b6…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
22170540 by Henry Wilkes at 2024-09-11T02:09:21+00:00
fixup! Bug 7494: Create local home page for TBB.
Bug 43131: Reduce layout jank when loading about:tor.
We wait until the initialization is complete before we reveal the page
content. So on refresh, the page just shows a single flash, but no
change in layout.
We also speed up the usual page load by having l10n load both the stable
and testing headings at initiation, rather than waiting for the
"InitialData" event from the page actor.
In the case where we have an update to show, we wait a little longer for
the l10n to complete.
- - - - -
5 changed files:
- browser/components/BrowserGlue.sys.mjs
- browser/components/abouttor/AboutTorChild.sys.mjs
- browser/components/abouttor/content/aboutTor.css
- browser/components/abouttor/content/aboutTor.html
- browser/components/abouttor/content/aboutTor.js
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -513,6 +513,7 @@ let JSWINDOWACTORS = {
events: {
DOMContentLoaded: {},
+ L10nMutationsFinished: {},
SubmitSearchOnionize: { wantUntrusted: true },
},
},
=====================================
browser/components/abouttor/AboutTorChild.sys.mjs
=====================================
@@ -16,6 +16,12 @@ export class AboutTorChild extends JSWindowActorChild {
case "SubmitSearchOnionize":
this.sendAsyncMessage("AboutTor:SetSearchOnionize", !!event.detail);
break;
+ case "L10nMutationsFinished":
+ // Pass on chrome-only event for completed localization to content.
+ this.contentWindow.dispatchEvent(
+ new this.contentWindow.CustomEvent("L10nMutationsFinished")
+ );
+ break;
}
}
}
=====================================
browser/components/abouttor/content/aboutTor.css
=====================================
@@ -29,6 +29,13 @@ body {
repeat-x;
}
+body:not(.initialized) {
+ /* Hide the components before the page is initialized.
+ * NOTE: The layout can still be adjusted or measured in this time since we
+ * use visibility rather than `display: none`. */
+ visibility: hidden;
+}
+
h1 {
grid-area: heading;
display: flex;
@@ -45,6 +52,14 @@ h1 {
flex: 0 0 auto;
}
+body.is-testing #tor-browser-home-heading-stable {
+ display: none;
+}
+
+body:not(.is-testing) #tor-browser-home-heading-testing {
+ display: none;
+}
+
#tor-check {
grid-area: tor-check;
max-width: var(--form-max-width);
=====================================
browser/components/abouttor/content/aboutTor.html
=====================================
@@ -35,7 +35,14 @@
alt=""
src="chrome://branding/content/about-logo.svg"
/>
- <span id="tor-browser-home-heading-text"></span>
+ <span
+ id="tor-browser-home-heading-stable"
+ data-l10n-id="tor-browser-home-heading-stable"
+ ></span>
+ <span
+ id="tor-browser-home-heading-testing"
+ data-l10n-id="tor-browser-home-heading-testing"
+ ></span>
</h1>
<p id="tor-check">
<img
=====================================
browser/components/abouttor/content/aboutTor.js
=====================================
@@ -137,12 +137,7 @@ const MessageArea = {
}
// Set heading.
- document.l10n.setAttributes(
- document.getElementById("tor-browser-home-heading-text"),
- this._isStable
- ? "tor-browser-home-heading-stable"
- : "tor-browser-home-heading-testing"
- );
+ document.body.classList.toggle("is-testing", !this._isStable);
document.body.classList.toggle("show-tor-check", !this._torConnectEnabled);
@@ -167,6 +162,20 @@ const MessageArea = {
"shown-message"
);
}
+
+ // In the case where we set the update message, we are still waiting for the
+ // l10n message to complete. We wait until then before showing the content.
+ if (document.hasPendingL10nMutations) {
+ window.addEventListener(
+ "L10nMutationsFinished",
+ () => {
+ document.body.classList.add("initialized");
+ },
+ { once: true }
+ );
+ } else {
+ document.body.classList.add("initialized");
+ }
},
};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2217054…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2217054…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
a913090d by Richard Pospesel at 2024-09-10T21:56:29+00:00
fixup! MB 38: Mullvad Browser configuration
Bug 222: Hide 'List all tabs' when the tabs don't overflow
- - - - -
1 changed file:
- browser/app/profile/000-mullvad-browser.js
Changes:
=====================================
browser/app/profile/000-mullvad-browser.js
=====================================
@@ -48,3 +48,6 @@ pref("app.feedback.baseURL", "https://mullvad.net/help/tag/browser/");
// mullvad-browser#234: Do not spoof the OS in the User-Agent header
pref("privacy.resistFingerprinting.spoofOsInUserAgentHeader", false);
+
+// mullvad-browser#222: Hide "List all tabs" when the tabs don't overflow
+pref("browser.tabs.tabmanager.enabled", false);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/a91…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/a91…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch main at The Tor Project / Applications / Tor Browser update responses
Commits:
c68ab1ee by Nicolas Vigier at 2024-09-09T18:41:54+02:00
Update 11.5.8 mar URLs to point to archive.tpo (tor-browser-build#41233)
We're been keeping 11.5.8 mar files on cdn.torproject.org as a watershed
update for a while. We're switching to archive.tpo URLs to be able to
remove it from cdn.tpo.
- - - - -
30 changed files:
- update_pre12.0/release/11.5.7-11.5.8-linux32-ar.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ca.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-cs.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-da.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-de.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-el.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-en-US.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-es-AR.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-es-ES.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-fa.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-fr.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ga-IE.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-he.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-hu.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-id.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-is.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-it.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ja.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ka.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ko.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-lt.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-mk.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ms.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-my.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-nb-NO.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-nl.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-pl.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-pt-BR.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ro.xml
- update_pre12.0/release/11.5.7-11.5.8-linux32-ru.xml
The diff was not included because it is too large.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-update-responses…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-update-responses…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.15.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
5be5f679 by Beatriz Rizental at 2024-09-10T15:27:58+02:00
Revert "Add CI for Tor Browser"
This reverts commit da96aaddf555f72ecf3c5c50c7c563f943c78af4.
- - - - -
4ec29062 by Beatriz Rizental at 2024-09-10T15:27:58+02:00
Revert "Add CI for Base Browser"
This reverts commit 8a16305a6f2ee34e9e7fe7c0ce3f7edf407ebcc6.
- - - - -
8eb0e1e5 by Beatriz Rizental at 2024-09-10T15:27:58+02:00
Add CI for Tor Browser
- - - - -
3 changed files:
- .gitlab-ci.yml
- − .gitlab/ci/lint.yml
- − .gitlab/ci/scripts/run_linters.py
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -1,7 +1,5 @@
stages:
- - lint
- update-translations
include:
- - local: '.gitlab/ci/lint.yml'
- local: '.gitlab/ci/update-translations.yml'
=====================================
.gitlab/ci/lint.yml deleted
=====================================
@@ -1,319 +0,0 @@
-variables:
- # This needs to be kept in sync with the max Python version accepted by ./mach
- PYTHON_VERSION: "3.11.7"
-
-.base:
- stage: lint
- interruptible: true
- variables:
- PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
- cache:
- paths:
- - node_modules
- - .cache/pip
-
-eslint:
- extends: .base
- image: cimg/python:$PYTHON_VERSION-node
- script:
- - .gitlab/ci/scripts/run_linters.py eslint
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- # Files that are likely audited.
- - '**/*.js'
- - '**/*.jsm'
- - '**/*.json'
- - '**/*.jsx'
- - '**/*.mjs'
- - '**/*.sjs'
- - '**/*.html'
- - '**/*.xhtml'
- - '**/*.xml'
- - 'tools/lint/eslint.yml'
- # Run when eslint policies change.
- - '**/.eslintignore'
- - '**/*eslintrc*'
- # The plugin implementing custom checks.
- - 'tools/lint/eslint/eslint-plugin-mozilla/**'
- - 'tools/lint/eslint/eslint-plugin-spidermonkey-js/**'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-stylelint:
- extends: .base
- image: cimg/python:$PYTHON_VERSION-node
- script:
- - .gitlab/ci/scripts/run_linters.py stylelint
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- # Files that are likely audited.
- - '**/*.css'
- - 'tools/lint/styleint.yml'
- # Run when stylelint policies change.
- - '**/.stylelintignore'
- - '**/*stylelintrc*'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-py-black:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py black
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- # The list of extensions should match tools/lint/black.yml
- - '**/*.py'
- - '**/moz.build'
- - '**/*.configure'
- - '**/*.mozbuild'
- - 'pyproject.toml'
- - 'tools/lint/black.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-py-ruff:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py ruff
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.py'
- - '**/*.configure'
- - '**/.ruff.toml'
- - 'pyproject.toml'
- - 'tools/lint/ruff.yml'
- - 'tools/lint/python/ruff.py'
- - 'tools/lint/python/ruff_requirements.txt'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-yaml:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py yaml
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.yml'
- - '**/*.yaml'
- - '**/.ymllint'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-shellcheck:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py shellcheck
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.sh'
- - 'tools/lint/shellcheck.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-clang-format:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py clang-format
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.cpp'
- - '**/*.c'
- - '**/*.cc'
- - '**/*.h'
- - '**/*.m'
- - '**/*.mm'
- - 'tools/lint/clang-format.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-rustfmt:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py rustfmt
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.rs'
- - 'tools/lint/rustfmt.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-fluent-lint:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py fluent-lint
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.ftl'
- - 'tools/lint/fluent-lint.yml'
- - 'tools/lint/fluent-lint/exclusions.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-localization:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py l10n
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/locales/en-US/**'
- - '**/l10n.toml'
- - 'third_party/python/compare-locales/**'
- - 'third_party/python/fluent/**'
- - 'tools/lint/l10n.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-mingw-capitalization:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py mingw-capitalization
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.cpp'
- - '**/*.cc'
- - '**/*.c'
- - '**/*.h'
- - 'tools/lint/mingw-capitalization.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-mscom-init:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py mscom-init
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.cpp'
- - '**/*.cc'
- - '**/*.c'
- - '**/*.h'
- - 'tools/lint/mscom-init.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-file-whitespace:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py file-whitespace
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.c'
- - '**/*.cc'
- - '**/*.cpp'
- - '**/*.css'
- - '**/*.dtd'
- - '**/*.idl'
- - '**/*.ftl'
- - '**/*.h'
- - '**/*.html'
- - '**/*.md'
- - '**/*.properties'
- - '**/*.py'
- - '**/*.rs'
- - '**/*.rst'
- - '**/*.webidl'
- - '**/*.xhtml'
- - 'tools/lint/file-whitespace.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-test-manifest:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py test-manifest-alpha test-manifest-disable test-manifest-skip-if
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.ini'
- - 'python/mozlint/**'
- - 'tools/lint/**'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
-
-trojan-source:
- extends: .base
- image: cimg/python:$PYTHON_VERSION
- script:
- - .gitlab/ci/scripts/run_linters.py trojan-source
- rules:
- - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- changes:
- # List copied from: taskcluster/ci/source-test/mozlint.yml
- #
- - '**/*.c'
- - '**/*.cc'
- - '**/*.cpp'
- - '**/*.h'
- - '**/*.py'
- - '**/*.rs'
- - 'tools/lint/trojan-source.yml'
- # Run job whenever a new tag is created
- # or whenever a commit is merged to a protected branch
- - if: $CI_COMMIT_TAG || $CI_COMMIT_REF_PROTECTED == 'true'
=====================================
.gitlab/ci/scripts/run_linters.py deleted
=====================================
@@ -1,110 +0,0 @@
-#!/usr/bin/env python3
-
-import argparse
-import os
-import re
-import shlex
-import subprocess
-import sys
-
-
-def git(command):
- result = subprocess.run(
- ["git"] + shlex.split(command), check=True, capture_output=True, text=True
- )
- return result.stdout.strip()
-
-
-def get_firefox_tag_from_branch_name(branch_name):
- """Extracts the Firefox tag associated with a branch name.
-
- The "firefox tag" is the tag that marks
- the end of the Mozilla commits and the start of the Tor Project commits.
-
- Know issue: If ever there is more than one tag per Firefox ESR version,
- this function may return the incorrect reference number.
-
- Args:
- branch_name: The branch name to extract the tag from.
- Expected format is tor-browser-91.2.0esr-11.0-1,
- where 91.2.0esr is the Firefox version.
-
- Returns:
- The reference specifier of the matching Firefox tag.
- An exception wil be raised if anything goes wrong.
- """
-
- # Extracts the version number from a branch name.
- firefox_version = ""
- match = re.search(r"(?<=browser-)([^-]+)", branch_name)
- if match:
- # TODO: Validate that what we got is actually a valid semver string?
- firefox_version = match.group(1)
- else:
- raise ValueError(f"Failed to extract version from branch name '{branch_name}'.")
-
- tag = f"FIREFOX_{firefox_version.replace('.', '_')}_"
- remote_tags = git("ls-remote --tags")
-
- # Each line looks like:
- # 9edd658bfd03a6b4743ecb75fd4a9ad968603715 refs/tags/FIREFOX_91_9_0esr_BUILD1
- pattern = rf"(.*){re.escape(tag)}(.*)$"
- match = re.search(pattern, remote_tags, flags=re.MULTILINE)
- if match:
- return match.group(0).split()[0]
- else:
- raise ValueError(
- f"Failed to find reference specifier for Firefox tag in branch '{branch_name}'."
- )
-
-
-def get_list_of_changed_files():
- """Gets a list of files changed in the working directory.
-
- This function is meant to be run inside the Gitlab CI environment.
-
- When running in a default branch, get the list of changed files since the last Firefox tag.
- When running for a new MR commit, get a list of changed files in the current MR.
-
- Returns:
- A list of filenames of changed files (excluding deleted files).
- An exception wil be raised if anything goes wrong.
- """
-
- base_reference = ""
-
- if os.getenv("CI_PIPELINE_SOURCE") == "merge_request_event":
- # For merge requests, the base_reference is the common ancestor between the MR and the target branch.
- base_reference = os.getenv("CI_MERGE_REQUEST_DIFF_BASE_SHA")
- else:
- # When not in merge requests, the base reference is the Firefox tag
- base_reference = get_firefox_tag_from_branch_name(os.getenv("CI_COMMIT_BRANCH"))
-
- if not base_reference:
- raise RuntimeError("No base reference found. There might be more errors above.")
-
- # Fetch the tag reference
- git(f"fetch origin {base_reference} --depth=1 --filter=blob:none")
- # Return the list of changed files
- return git(f"diff --diff-filter=d --name-only {base_reference} HEAD").split("\n")
-
-
-if __name__ == "__main__":
- parser = argparse.ArgumentParser(
- description="Run ./mach linters in CI. Warning: if you run this in your local environment it might mess up your git history."
- )
- parser.add_argument(
- "linters", metavar="L", type=str, nargs="+", help="A list of linters to run."
- )
- args = parser.parse_args()
-
- command = [
- "./mach",
- "lint",
- "-v",
- *(s for l in args.linters for s in ("-l", l)),
- *get_list_of_changed_files(),
- ]
- result = subprocess.run(command, text=True)
-
- sys.exit(result.returncode)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/767815…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/767815…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
fdc0d894 by Morgan at 2024-09-09T19:01:29+00:00
fixup! Firefox preference overrides.
Bug 42255: lock pdfjs.disabled to false in stable
- - - - -
1 changed file:
- browser/app/profile/001-base-profile.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -433,6 +433,10 @@ pref("network.http.referer.XOriginTrimmingPolicy", 2); // Bug 17228: Force trim
pref("network.http.windows-sso.enabled", false, locked);
// tor-browser#40424
pref("pdfjs.enableScripting", false);
+#if MOZ_UPDATE_CHANNEL == release
+// tor-browser#42255: pdfjs.disabled used to be part of RFP until Bug 1838415; lock pref to false in stable
+pref("pdfjs.disabled", false, locked);
+#endif
// Bug 40057: Ensure system colors are not used for CSS4 colors
pref("browser.display.use_system_colors", false);
// Enforce non-native widget theme (true by default, defense in depth).
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fdc…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fdc…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
69a7c008 by Morgan at 2024-09-09T19:01:06+00:00
fixup! Firefox preference overrides.
Bug 42255: lock pdfjs.disabled to false in stable
- - - - -
1 changed file:
- browser/app/profile/001-base-profile.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -433,6 +433,10 @@ pref("network.http.referer.XOriginTrimmingPolicy", 2); // Bug 17228: Force trim
pref("network.http.windows-sso.enabled", false, locked);
// tor-browser#40424
pref("pdfjs.enableScripting", false);
+#if MOZ_UPDATE_CHANNEL == release
+// tor-browser#42255: pdfjs.disabled used to be part of RFP until Bug 1838415; lock pref to false in stable
+pref("pdfjs.disabled", false, locked);
+#endif
// Bug 40057: Ensure system colors are not used for CSS4 colors
pref("browser.display.use_system_colors", false);
// Enforce non-native widget theme (true by default, defense in depth).
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/69a7c00…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/69a7c00…
You're receiving this email because of your account on gitlab.torproject.org.