morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
344327b6 by Nicolas Vigier at 2024-10-29T21:19:49+00:00
Update release prep issue templates (Tor Browser Legacy)
Add missing step when manually deploying update responses for
legacy-only release.
- - - - -
1 changed file:
- .gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
Changes:
=====================================
.gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
=====================================
@@ -251,6 +251,22 @@ popd
```bash
make torbrowser-update_responses-release
```
+ - [ ] Commit new update responses to tor-browser-update-responses.git:
+ - [ ] Run:
+ ```bash
+ updaterespdir=/path/to/tor-browser-update-responses.git
+ cp torbrowser/release/update-responses/update-responses-release-${TOR_BROWSER_VERSION}.tar "$updaterespdir"
+ cd "$updaterespdir"
+ git pull
+ rm -Rf update_3/release
+ tar -C update_3 update-responses-release-${TOR_BROWSER_VERSION}.tar
+ rm update-responses-release-${TOR_BROWSER_VERSION}.tar
+ git add update_3/release
+ git commit -m "release: new version, ${TOR_BROWSER_VERSION}"
+ git push
+ # print the commit hash and copy past it for the next step
+ git show -s --format=%H
+ ```
- On `staticiforme.torproject.org`, deploy new update responses:
- **NOTE**: for now this is a bit janky, we should somehow update the workflow to be a bit less hacky
- [ ] Edit an existing `deploy_update_responses-release.sh` script in your `HOME` directory with the newly pushed commit hash
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/3…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/3…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
6d2b4add by Henry Wilkes at 2024-10-29T21:02:40+00:00
fixup! Bug 16940: After update, load local change notes.
Bug 42186: Revert the entire commit.
- - - - -
201d50e6 by Henry Wilkes at 2024-10-29T21:02:40+00:00
fixup! Add TorStrings module for localization
Bug 42186: Drop about:tbupdate.
- - - - -
b4b207fa by Henry Wilkes at 2024-10-29T21:02:40+00:00
fixup! Bug 7494: Create local home page for TBB.
Bug 42186: Move override page logic to about:tor commit.
- - - - -
15 changed files:
- − browser/actors/AboutTBUpdateChild.sys.mjs
- − browser/actors/AboutTBUpdateParent.sys.mjs
- browser/actors/moz.build
- − browser/base/content/abouttbupdate/aboutTBUpdate.css
- − browser/base/content/abouttbupdate/aboutTBUpdate.js
- − browser/base/content/abouttbupdate/aboutTBUpdate.xhtml
- browser/base/content/browser.js
- browser/base/jar.mn
- browser/components/BrowserContentHandler.sys.mjs
- browser/components/BrowserGlue.sys.mjs
- browser/components/about/AboutRedirector.cpp
- browser/components/about/components.conf
- toolkit/modules/RemotePageAccessManager.sys.mjs
- − toolkit/torbutton/chrome/locale/en-US/aboutTBUpdate.dtd
- toolkit/torbutton/jar.mn
Changes:
=====================================
browser/actors/AboutTBUpdateChild.sys.mjs deleted
=====================================
@@ -1,8 +0,0 @@
-// Copyright (c) 2020, The Tor Project, Inc.
-// See LICENSE for licensing information.
-//
-// vim: set sw=2 sts=2 ts=8 et syntax=javascript:
-
-import { RemotePageChild } from "resource://gre/actors/RemotePageChild.sys.mjs";
-
-export class AboutTBUpdateChild extends RemotePageChild {}
=====================================
browser/actors/AboutTBUpdateParent.sys.mjs deleted
=====================================
@@ -1,128 +0,0 @@
-// Copyright (c) 2020, The Tor Project, Inc.
-// See LICENSE for licensing information.
-//
-// vim: set sw=2 sts=2 ts=8 et syntax=javascript:
-
-import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs";
-
-const kRequestUpdateMessageName = "FetchUpdateData";
-
-/**
- * This code provides services to the about:tbupdate page. Whenever
- * about:tbupdate needs to do something chrome-privileged, it sends a
- * message that's handled here. It is modeled after Mozilla's about:home
- * implementation.
- */
-export class AboutTBUpdateParent extends JSWindowActorParent {
- async receiveMessage(aMessage) {
- if (aMessage.name == kRequestUpdateMessageName) {
- return this.getReleaseNoteInfo();
- }
- return undefined;
- }
-
- get moreInfoURL() {
- try {
- return Services.prefs.getCharPref("torbrowser.post_update.url");
- } catch (e) {}
-
- // Use the default URL as a fallback.
- return Services.urlFormatter.formatURLPref("startup.homepage_override_url");
- }
-
- // Read the text from the beginning of the changelog file that is located
- // at TorBrowser/Docs/ChangeLog.txt (or,
- // TorBrowser.app/Contents/Resources/TorBrowser/Docs/ on macOS, to support
- // Gatekeeper signing) and return an object that contains the following
- // properties:
- // version e.g., Tor Browser 8.5
- // releaseDate e.g., March 31 2019
- // releaseNotes details of changes (lines 2 - end of ChangeLog.txt)
- // We attempt to parse the first line of ChangeLog.txt to extract the
- // version and releaseDate. If parsing fails, we return the entire first
- // line in version and omit releaseDate.
- async getReleaseNoteInfo() {
- let info = { moreInfoURL: this.moreInfoURL };
-
- try {
- // "XREExeF".parent is the directory that contains firefox, i.e.,
- // Browser/ or, TorBrowser.app/Contents/MacOS/ on macOS.
- let f = Services.dirsvc.get("XREExeF", Ci.nsIFile).parent;
- if (AppConstants.platform === "macosx") {
- f = f.parent;
- f.append("Resources");
- }
- f.append("TorBrowser");
- f.append("Docs");
- f.append("ChangeLog.txt");
-
- // NOTE: We load in the entire file, but only use the first few lines
- // before the first blank line.
- const logLines = (await IOUtils.readUTF8(f.path))
- .replace(/\n\r?\n.*/ms, "")
- .split(/\n\r?/);
-
- // Read the first line to get the version and date.
- // Assume everything after the last "-" is the date.
- const firstLine = logLines.shift();
- const match = firstLine?.match(/(.*)-+(.*)/);
- if (match) {
- info.version = match[1].trim();
- info.releaseDate = match[2].trim();
- } else {
- // No date.
- info.version = firstLine?.trim();
- }
-
- // We want to read the rest of the release notes as a tree. Each entry
- // will contain the text for that line.
- // We choose a negative index for the top node of this tree to ensure no
- // line will appear less indented.
- const topEntry = { indent: -1, children: undefined };
- let prevEntry = topEntry;
-
- for (let line of logLines) {
- const indent = line.match(/^ */)[0];
- line = line.trim();
- if (line.startsWith("*")) {
- // Treat as a bullet point.
- let entry = {
- text: line.replace(/^\*\s/, ""),
- indent: indent.length,
- };
- let parentEntry;
- if (entry.indent > prevEntry.indent) {
- // A sub-list of the previous item.
- prevEntry.children = [];
- parentEntry = prevEntry;
- } else {
- // Same list or end of sub-list.
- // Search for the first parent whose indent comes before ours.
- parentEntry = prevEntry.parent;
- while (entry.indent <= parentEntry.indent) {
- parentEntry = parentEntry.parent;
- }
- }
- entry.parent = parentEntry;
- parentEntry.children.push(entry);
- prevEntry = entry;
- } else if (prevEntry === topEntry) {
- // Unexpected, missing bullet point on first line.
- // Place as its own bullet point instead, and set as prevEntry for the
- // next loop.
- prevEntry = { text: line, indent: indent.length, parent: topEntry };
- topEntry.children = [prevEntry];
- } else {
- // Append to the previous bullet point.
- prevEntry.text += ` ${line}`;
- }
- }
-
- info.releaseNotes = topEntry.children;
- } catch (e) {
- console.error(e);
- }
-
- return info;
- }
-}
=====================================
browser/actors/moz.build
=====================================
@@ -90,9 +90,3 @@ FINAL_TARGET_FILES.actors += [
BROWSER_CHROME_MANIFESTS += [
"test/browser/browser.toml",
]
-
-if CONFIG["BASE_BROWSER_UPDATE"]:
- FINAL_TARGET_FILES.actors += [
- "AboutTBUpdateChild.sys.mjs",
- "AboutTBUpdateParent.sys.mjs",
- ]
=====================================
browser/base/content/abouttbupdate/aboutTBUpdate.css deleted
=====================================
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2019, The Tor Project, Inc.
- * See LICENSE for licensing information.
- *
- * vim: set sw=2 sts=2 ts=8 et syntax=css:
- */
-
-:root {
- --abouttor-text-color: white;
- --abouttor-bg-toron-color: #420C5D;
-}
-
-body {
- font-family: Helvetica, Arial, sans-serif;
- color: var(--abouttor-text-color);
- background-color: var(--abouttor-bg-toron-color);
- margin-block: 40px;
- margin-inline: 50px;
- display: grid;
- grid-template-columns: auto auto;
- align-items: baseline;
- gap: 40px 50px;
-}
-
-body > *:not([hidden]) {
- display: contents;
-}
-
-.label-column {
- grid-column: 1;
-}
-
-.content {
- grid-column: 2;
-}
-
-.content.en-US-content {
- font-family: monospace;
- line-height: 1.4;
-}
-
-.label-column, .content {
- margin: 0;
- padding: 0;
- font-size: 1rem;
- font-weight: normal;
-}
-
-a {
- color: inherit;
-}
-
-.no-line-break {
- white-space: nowrap;
-}
-
-ul {
- padding-inline: 1em 0;
-}
-
-h3, h4 {
- font-size: 1.1rem;
- font-weight: bold;
-}
-
-h3.build-system-heading {
- font-size: 1.5rem;
- font-weight: normal;
- margin-block-start: 3em;
-}
=====================================
browser/base/content/abouttbupdate/aboutTBUpdate.js deleted
=====================================
@@ -1,110 +0,0 @@
-// Copyright (c) 2020, The Tor Project, Inc.
-// See LICENSE for licensing information.
-//
-// vim: set sw=2 sts=2 ts=8 et syntax=javascript:
-
-/* eslint-env mozilla/remote-page */
-
-/**
- * An object representing a bullet point in the release notes.
- *
- * typedef {Object} ReleaseBullet
- * @property {string} text - The text for this bullet point.
- * @property {?Array<ReleaseBullet>} children - A sub-list of bullet points.
- */
-
-/**
- * Fill an element with the given list of release bullet points.
- *
- * @param {Element} container - The element to fill with bullet points.
- * @param {Array<ReleaseBullet>} bulletPoints - The list of bullet points.
- * @param {string} [childTag="h3"] - The element tag name to use for direct
- * children. Initially, the children are h3 sub-headings.
- */
-function fillReleaseNotes(container, bulletPoints, childTag = "h3") {
- for (const { text, children } of bulletPoints) {
- const childEl = document.createElement(childTag);
- // Keep dashes like "[tor-browser]" on the same line by nowrapping the word.
- for (const [index, part] of text.split(/(\S+-\S+)/).entries()) {
- if (!part) {
- continue;
- }
- const span = document.createElement("span");
- span.textContent = part;
- span.classList.toggle("no-line-break", index % 2);
- childEl.appendChild(span);
- }
- container.appendChild(childEl);
- if (children) {
- if (childTag == "h3" && text.toLowerCase() === "build system") {
- // Special case: treat the "Build System" heading's children as
- // sub-headings.
- childEl.classList.add("build-system-heading");
- fillReleaseNotes(container, children, "h4");
- } else {
- const listEl = document.createElement("ul");
- fillReleaseNotes(listEl, children, "li");
- if (childTag == "li") {
- // Insert within the "li" element.
- childEl.appendChild(listEl);
- } else {
- container.appendChild(listEl);
- }
- }
- }
- }
-}
-
-/**
- * Set the content for the specified container, or hide it if we have no
- * content.
- *
- * @template C
- * @param {string} containerId - The id for the container.
- * @param {?C} content - The content for this container, or a falsey value if
- * the container has no content.
- * @param {function(contentEl: Elemenet, content: C)} [fillContent] - A function
- * to fill the ".content" contentEl with the given 'content'. If unspecified,
- * the 'content' will become the contentEl's textContent.
- */
-function setContent(containerId, content, fillContent) {
- const container = document.getElementById(containerId);
- if (!content) {
- container.hidden = true;
- return;
- }
- const contentEl = container.querySelector(".content");
- // Release notes are only in English.
- contentEl.setAttribute("lang", "en-US");
- contentEl.setAttribute("dir", "ltr");
- contentEl.classList.add("en-US-content");
- if (fillContent) {
- fillContent(contentEl, content);
- } else {
- contentEl.textContent = content;
- }
-}
-
-/**
- * Callback when we receive the update details.
- *
- * @param {Object} aData - The update details.
- * @param {?string} aData.version - The update version.
- * @param {?string} aData.releaseDate - The release date.
- * @param {?string} aData.moreInfoURL - A URL for more info.
- * @param {?Array<ReleaseBullet>} aData.releaseNotes - Release notes as bullet
- * points.
- */
-function onUpdate(aData) {
- setContent("version-row", aData.version);
- setContent("releasedate-row", aData.releaseDate);
- setContent("releasenotes", aData.releaseNotes, fillReleaseNotes);
-
- if (aData.moreInfoURL) {
- document.getElementById("infolink").setAttribute("href", aData.moreInfoURL);
- } else {
- document.getElementById("fullinfo").hidden = true;
- }
-}
-
-RPMSendQuery("FetchUpdateData").then(onUpdate);
=====================================
browser/base/content/abouttbupdate/aboutTBUpdate.xhtml deleted
=====================================
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE html [ <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
-%htmlDTD;
-<!ENTITY % tbUpdateDTD SYSTEM "chrome://browser/locale/aboutTBUpdate.dtd">
-%tbUpdateDTD; ]>
-
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta
- http-equiv="Content-Security-Policy"
- content="default-src chrome:; object-src 'none'"
- />
- <title>&aboutTBUpdate.changelogTitle;</title>
- <link
- rel="stylesheet"
- type="text/css"
- href="chrome://browser/content/abouttbupdate/aboutTBUpdate.css"
- />
- <script
- src="chrome://browser/content/abouttbupdate/aboutTBUpdate.js"
- type="text/javascript"
- />
- <!-- Hack: we are not using Fluent translations in this page (yet), but we use
- - this tag so it sets up the page automatically for us. -->
- <link rel="localization" href="branding/brand.ftl" />
- </head>
- <body>
- <!-- NOTE: We don't use the <dl>, <dt> and <dd> elements to form name-value
- - pairs because this semantics is relatively new, whilst firefox
- - currently still maps these to the more limited "definitionlist", "term"
- - and "definition" roles. -->
- <div id="version-row">
- <span class="label-column">&aboutTBUpdate.version;</span>
- <span class="content"></span>
- </div>
- <div id="releasedate-row">
- <span class="label-column">&aboutTBUpdate.releaseDate;</span>
- <span class="content"></span>
- </div>
- <div id="fullinfo">
- <p class="content">
- &aboutTBUpdate.linkPrefix;<a id="infolink">&aboutTBUpdate.linkLabel;</a
- >&aboutTBUpdate.linkSuffix;
- </p>
- </div>
- <section id="releasenotes">
- <h2 class="label-column">&aboutTBUpdate.releaseNotes;</h2>
- <div class="content"></div>
- </section>
- </body>
-</html>
=====================================
browser/base/content/browser.js
=====================================
@@ -771,10 +771,6 @@ if (Services.prefs.getBoolPref("browser.profiles.enabled")) {
gInitialPages.push("about:profilemanager");
}
-if (AppConstants.BASE_BROWSER_UPDATE) {
- gInitialPages.push("about:tbupdate");
-}
-
function isInitialPage(url) {
if (!(url instanceof Ci.nsIURI)) {
try {
=====================================
browser/base/jar.mn
=====================================
@@ -33,11 +33,6 @@ browser.jar:
content/browser/aboutTabCrashed.css (content/aboutTabCrashed.css)
content/browser/aboutTabCrashed.js (content/aboutTabCrashed.js)
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
-#ifdef BASE_BROWSER_UPDATE
- content/browser/abouttbupdate/aboutTBUpdate.xhtml (content/abouttbupdate/aboutTBUpdate.xhtml)
- content/browser/abouttbupdate/aboutTBUpdate.js (content/abouttbupdate/aboutTBUpdate.js)
- content/browser/abouttbupdate/aboutTBUpdate.css (content/abouttbupdate/aboutTBUpdate.css)
-#endif
content/browser/blanktab.html (content/blanktab.html)
content/browser/browser.css (content/browser.css)
content/browser/browser.js (content/browser.js)
=====================================
browser/components/BrowserContentHandler.sys.mjs
=====================================
@@ -783,16 +783,6 @@ nsBrowserContentHandler.prototype = {
// into account because that requires waiting for the session file
// to be read. If a crash occurs after updating, before restarting,
// we may open the startPage in addition to restoring the session.
- //
- // Tor Browser: Instead of opening the post-update "override page"
- // directly, we ensure that about:tor will be opened in a special
- // mode that notifies the user that their browser was updated.
- // The about:tor page will provide a link to the override page
- // where the user can learn more about the update, as well as a
- // link to the Tor Browser changelog page (about:tbupdate). The
- // override page URL comes from the openURL attribute within the
- // updates.xml file or, if no showURL action is present, from the
- // startup.homepage_override_url pref.
willRestoreSession =
lazy.SessionStartup.isAutomaticRestoreEnabled();
@@ -887,6 +877,13 @@ nsBrowserContentHandler.prototype = {
old_forkVersion
);
if (overridePage && AppConstants.BASE_BROWSER_UPDATE) {
+ // Tor Browser: Instead of opening the post-update "override page"
+ // directly, we ensure that about:tor will be opened, which should
+ // notify the user that their browser was updated.
+ //
+ // The overridePage comes from the openURL attribute within the
+ // updates.xml file or, if no showURL action is present, from the
+ // startup.homepage_override_url pref.
Services.prefs.setCharPref(
"torbrowser.post_update.url",
overridePage
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -1022,21 +1022,6 @@ let JSWINDOWACTORS = {
},
};
-if (AppConstants.BASE_BROWSER_UPDATE) {
- JSWINDOWACTORS.AboutTBUpdate = {
- parent: {
- esModuleURI: "resource:///actors/AboutTBUpdateParent.sys.mjs",
- },
- child: {
- esModuleURI: "resource:///actors/AboutTBUpdateChild.sys.mjs",
- events: {
- DOMWindowCreated: { capture: true },
- },
- },
- matches: ["about:tbupdate"],
- };
-}
-
ChromeUtils.defineLazyGetter(
lazy,
"WeaveService",
=====================================
browser/components/about/AboutRedirector.cpp
=====================================
@@ -166,13 +166,6 @@ static const RedirEntry kRedirMap[] = {
nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
nsIAboutModule::URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS |
nsIAboutModule::HIDE_FROM_ABOUTABOUT},
-#ifdef BASE_BROWSER_UPDATE
- {"tbupdate", "chrome://browser/content/abouttbupdate/aboutTBUpdate.xhtml",
- nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
- nsIAboutModule::URI_MUST_LOAD_IN_CHILD | nsIAboutModule::ALLOW_SCRIPT |
- nsIAboutModule::HIDE_FROM_ABOUTABOUT |
- nsIAboutModule::IS_SECURE_CHROME_UI},
-#endif
// The correct URI must be obtained by GetManualChromeURI
{"manual", "about:blank",
nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT |
=====================================
browser/components/about/components.conf
=====================================
@@ -35,9 +35,6 @@ pages = [
'welcomeback',
]
-if defined('BASE_BROWSER_UPDATE'):
- pages.append('tbupdate')
-
Classes = [
{
'cid': '{7e4bb6ad-2fc4-4dc6-89ef-23e8e5ccf980}',
=====================================
toolkit/modules/RemotePageAccessManager.sys.mjs
=====================================
@@ -237,9 +237,6 @@ export let RemotePageAccessManager = {
RPMAddMessageListener: ["*"],
RPMRemoveMessageListener: ["*"],
},
- "about:tbupdate": {
- RPMSendQuery: ["FetchUpdateData"],
- },
"about:torconnect": {
RPMAddMessageListener: [
"torconnect:state-change",
=====================================
toolkit/torbutton/chrome/locale/en-US/aboutTBUpdate.dtd deleted
=====================================
@@ -1,18 +0,0 @@
-<!-- Copyright (c) 2022, The Tor Project, Inc.
- - This Source Code Form is subject to the terms of the Mozilla Public
- - License, v. 2.0. If a copy of the MPL was not distributed with this
- - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-<!ENTITY aboutTBUpdate.changelogTitle "Tor Browser Changelog">
-<!ENTITY aboutTBUpdate.version "Version">
-<!ENTITY aboutTBUpdate.releaseDate "Release Date">
-<!ENTITY aboutTBUpdate.releaseNotes "Release Notes">
-<!-- LOCALIZATION NOTE: the following entities are used to create the link to
- - obtain more information about the latest update.
- - The markup on the page looks like this:
- - &aboutTBUpdate.linkPrefix;<a href="...">&aboutTBUpdate.linkLabel;</a>&aboutTBUpdate.linkSuffix;
- - So, linkPrefix is what precedes the link, linkLabel is the link itself,
- - and linkSuffix is a text after the link. -->
-<!ENTITY aboutTBUpdate.linkPrefix "For the most up-to-date information about this release, ">
-<!ENTITY aboutTBUpdate.linkLabel "visit our website">
-<!ENTITY aboutTBUpdate.linkSuffix ".">
=====================================
toolkit/torbutton/jar.mn
=====================================
@@ -7,8 +7,5 @@ torbutton.jar:
# browser branding
% override chrome://branding/locale/brand.properties chrome://torbutton/locale/brand.properties
-# Strings for the about:tbupdate page
-% override chrome://browser/locale/aboutTBUpdate.dtd chrome://torbutton/locale/aboutTBUpdate.dtd
-
% locale torbutton en-US %locale/en-US/
locale/en-US/ (chrome/locale/en-US/*)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/50cede…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/50cede…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
0178b624 by Nicolas Vigier at 2024-10-29T20:08:40+00:00
Update release prep merge request template
Update self-review template to add torbrowser_legacy vars to rbm.conf,
and remove firefox-android.
- - - - -
1 changed file:
- .gitlab/merge_request_templates/relprep.md
Changes:
=====================================
.gitlab/merge_request_templates/relprep.md
=====================================
@@ -10,10 +10,11 @@
- [ ] `var/torbrowser_build`: should be `build1`, unless bumping a previous release preparation
- [ ] `var/browser_release_date`: must not be in the future when we start building
- [ ] `var/torbrowser_incremental_from` (not needed for Android-only releases)
+ - [ ] `var/torbrowser_legacy_version` (For Tor Browser 14.0.x stable releases only)
+ - [ ] `var/torbrowser_legacy_platform_version` (For Tor Browser 14.0.x stable releases only)
- [ ] Tag updates:
- [ ] [Firefox](https://gitlab.torproject.org/tpo/applications/tor-browser/-/tags)
- [ ] Geckoview - should match Firefox
- - [ ] [Firefox Android](https://gitlab.torproject.org/tpo/applications/firefox-android/-/t…
- Tags might be speculative in the release preparation: i.e., they might not exist yet.
- [ ] Addon updates:
- [ ] [NoScript](https://addons.mozilla.org/en-US/firefox/addon/noscript/)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch mullvad-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
1eb1dd23 by Pier Angelo Vendrame at 2024-10-29T19:10:13+01:00
fixup! Bug 40283: Workaround for the file upload bug
Lint with android-format.
- - - - -
291acbab by Pier Angelo Vendrame at 2024-10-29T19:10:21+01:00
fixup! Bug 40171: Make WebRequest and GeckoWebExecutor First-Party aware
Lint with android-format.
- - - - -
2 changed files:
- mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
- mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebRequest.java
Changes:
=====================================
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
=====================================
@@ -6301,10 +6301,10 @@ public class GeckoSession {
}
private static String normalizePath(String input) {
- // For an unclear reason, Android media picker delivers file paths
- // starting with double slash. Firefox performs path validation on
- // all paths, and double slash is deemed invalid.
- return input.startsWith("//") ? input.substring(1) : input;
+ // For an unclear reason, Android media picker delivers file paths
+ // starting with double slash. Firefox performs path validation on
+ // all paths, and double slash is deemed invalid.
+ return input.startsWith("//") ? input.substring(1) : input;
}
private static String getFile(final @NonNull Context context, final @NonNull Uri uri) {
=====================================
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebRequest.java
=====================================
@@ -49,9 +49,7 @@ public class WebRequest extends WebMessage {
/** The value of the Referer header for this request. */
public final @Nullable String referrer;
- /**
- * The value of the origin of this request.
- */
+ /** The value of the origin of this request. */
public final @Nullable String origin;
@Retention(RetentionPolicy.SOURCE)
@@ -248,10 +246,10 @@ public class WebRequest extends WebMessage {
* @param origin A URI String
* @return This Builder instance.
*/
- public @NonNull Builder origin(final @Nullable String origin) {
- mOrigin = origin;
- return this;
- }
+ public @NonNull Builder origin(final @Nullable String origin) {
+ mOrigin = origin;
+ return this;
+ }
/**
* @return A {@link WebRequest} constructed with the values from this Builder instance.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/4e…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/4e…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch base-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
4b20df89 by Pier Angelo Vendrame at 2024-10-29T19:08:47+01:00
fixup! Bug 40283: Workaround for the file upload bug
Lint with android-format.
- - - - -
8cd93211 by Pier Angelo Vendrame at 2024-10-29T19:08:54+01:00
fixup! Bug 40171: Make WebRequest and GeckoWebExecutor First-Party aware
Lint with android-format.
- - - - -
2 changed files:
- mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
- mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebRequest.java
Changes:
=====================================
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
=====================================
@@ -6301,10 +6301,10 @@ public class GeckoSession {
}
private static String normalizePath(String input) {
- // For an unclear reason, Android media picker delivers file paths
- // starting with double slash. Firefox performs path validation on
- // all paths, and double slash is deemed invalid.
- return input.startsWith("//") ? input.substring(1) : input;
+ // For an unclear reason, Android media picker delivers file paths
+ // starting with double slash. Firefox performs path validation on
+ // all paths, and double slash is deemed invalid.
+ return input.startsWith("//") ? input.substring(1) : input;
}
private static String getFile(final @NonNull Context context, final @NonNull Uri uri) {
=====================================
mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebRequest.java
=====================================
@@ -49,9 +49,7 @@ public class WebRequest extends WebMessage {
/** The value of the Referer header for this request. */
public final @Nullable String referrer;
- /**
- * The value of the origin of this request.
- */
+ /** The value of the origin of this request. */
public final @Nullable String origin;
@Retention(RetentionPolicy.SOURCE)
@@ -248,10 +246,10 @@ public class WebRequest extends WebMessage {
* @param origin A URI String
* @return This Builder instance.
*/
- public @NonNull Builder origin(final @Nullable String origin) {
- mOrigin = origin;
- return this;
- }
+ public @NonNull Builder origin(final @Nullable String origin) {
+ mOrigin = origin;
+ return this;
+ }
/**
* @return A {@link WebRequest} constructed with the values from this Builder instance.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/3975e7…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/3975e7…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
2e260b97 by Morgan at 2024-10-29T01:34:46+00:00
Update Release Prep templates:
- no 'legacy' rule for website (as legacy bins will only be available on dist.torproject.org)
- we make a blog post for legacy channel, but no website update
- - - - -
3 changed files:
- .gitlab/issue_templates/Release Prep - Tor Browser Alpha.md
- .gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
- .gitlab/issue_templates/Release Prep - Tor Browser Stable.md
Changes:
=====================================
.gitlab/issue_templates/Release Prep - Tor Browser Alpha.md
=====================================
@@ -152,10 +152,8 @@ Tor Browser Alpha (and Nightly) are on the `main` branch
- [ ] `databags/versions.ini`: Update the downloads versions
- `torbrowser-stable/version`: catch-all for latest stable version
- `torbrowser-alpha/version`: catch-all for latest alpha version
- - `torbrowser-legacy/version`: catch-all for latest ESR-115 version
- `torbrowser-*-stable/version`: platform-specific stable versions
- `torbrowser-*-alpha/version`: platform-specific alpha versions
- - `torbrowser-*-legacy/version`: platform-specific legacy versions
- [ ] Push to origin as new branch and create MR
- [ ] Review
- [ ] Merge
=====================================
.gitlab/issue_templates/Release Prep - Tor Browser Legacy.md
=====================================
@@ -141,16 +141,12 @@ Tor Browser Legacy is on the `maint-13.5` branch
<details>
<summary>Website</summary>
- ### downloads: https://gitlab.torproject.org/tpo/web/tpo.git
- - [ ] `databags/versions.ini`: Update the downloads versions
- - `torbrowser-stable/version`: catch-all for latest stable version
- - `torbrowser-alpha/version`: catch-all for latest alpha version
- - `torbrowser-legacy/version`: catch-all for latest ESR-115 version
- - `torbrowser-*-stable/version`: platform-specific stable versions
- - `torbrowser-*-alpha/version`: platform-specific alpha versions
- - `torbrowser-*-legacy/version`: platform-specific legacy versions
- - `tor-stable`,`tor-alpha`: set by tor devs, do not touch
- - [ ] Push to origin as new branch and create MR
+ ### blog: https://gitlab.torproject.org/tpo/web/blog.git
+ - [ ] Run `tools/signing/create-blog-post` which should create the new blog post from a template (edit set-config.blog to set you local blog directory)
+ - [ ] Note any ESR update
+ - [ ] Thank any users which have contributed patches
+ - [ ] **(Optional)** Draft any additional sections for new features which need testing, known issues, etc
+ - [ ] Push to origin as new branch and open MR
- [ ] Review
- [ ] Merge
- **⚠️ WARNING**: Do not deploy yet!
@@ -232,7 +228,7 @@ popd
```bash
static-update-component cdn.torproject.org && static-update-component dist.torproject.org
```
-- [ ] Deploy `tor-website` MR
+- [ ] Deploy `tor-blog` MR
- [ ] On `staticiforme.torproject.org`, remove old release:
- **NOTE**: Skip this step if we need to hold on to older versions for some reason (for example, this is an Andoid or Desktop-only release, or if we need to hold back installers in favor of build-to-build updates if there are signing issues, etc)
- [ ] `/srv/cdn-master.torproject.org/htdocs/aus1/torbrowser`
=====================================
.gitlab/issue_templates/Release Prep - Tor Browser Stable.md
=====================================
@@ -152,10 +152,8 @@ Tor Browser Stable is on the `maint-${TOR_BROWSER_MAJOR}.${TOR_BROWSER_MINOR}` b
- [ ] `databags/versions.ini`: Update the downloads versions
- `torbrowser-stable/version`: catch-all for latest stable version
- `torbrowser-alpha/version`: catch-all for latest alpha version
- - `torbrowser-legacy/version`: catch-all for latest ESR-115 version
- `torbrowser-*-stable/version`: platform-specific stable versions
- `torbrowser-*-alpha/version`: platform-specific alpha versions
- - `torbrowser-*-legacy/version`: platform-specific legacy versions
- [ ] Push to origin as new branch and create MR
- [ ] Review
- [ ] Merge
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch maint-13.5 at The Tor Project / Applications / tor-browser-build
Commits:
d96ed663 by Morgan at 2024-10-28T19:32:32+00:00
Bug 41252: Only build update responses for Mullvad Browser
- - - - -
1 changed file:
- tools/signing/do-all-signing
Changes:
=====================================
tools/signing/do-all-signing
=====================================
@@ -197,4 +197,6 @@ do_step download-unsigned-sha256sums-gpg-signatures-from-people-tpo
do_step sync-local-to-staticiforme
do_step sync-scripts-to-staticiforme
do_step staticiforme-prepare-cdn-dist-upload
+is_project mullvadbrowser && \
+ do_step upload-update_responses-to-staticiforme
do_step finished-signing-clean-linux-signer
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/d…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/d…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch maint-13.5 at The Tor Project / Applications / tor-browser-build
Commits:
53f72a36 by Nicolas Vigier at 2024-10-28T17:53:06+01:00
Bug 41252: Do not run upload-update_responses-to-staticiforme
When signing a 13.5-legacy release, don't update and upload update_responses.
The update_responses containing both the 14.0 and 13.5-legacy releases
will be generated from the `maint-14.0` branch.
- - - - -
1 changed file:
- tools/signing/do-all-signing
Changes:
=====================================
tools/signing/do-all-signing
=====================================
@@ -206,5 +206,4 @@ do_step download-unsigned-sha256sums-gpg-signatures-from-people-tpo
do_step sync-local-to-staticiforme
do_step sync-scripts-to-staticiforme
do_step staticiforme-prepare-cdn-dist-upload
-do_step upload-update_responses-to-staticiforme
do_step finished-signing-clean-linux-signer
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/5…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/5…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch maint-14.0 at The Tor Project / Applications / tor-browser-build
Commits:
7e3a10f5 by Pier Angelo Vendrame at 2024-10-28T16:27:19+01:00
Bug 41277 (fix): Remove 13.5.9 from incrementals.
- - - - -
1 changed file:
- rbm.conf
Changes:
=====================================
rbm.conf
=====================================
@@ -74,7 +74,7 @@ buildconf:
var:
torbrowser_version: '14.0.1'
- torbrowser_build: 'build1'
+ torbrowser_build: 'build2'
# This should be the date of when the build is started. For the build
# to be reproducible, browser_release_date should always be in the past.
browser_release_date: '2024/10/28 09:00:00'
@@ -83,7 +83,6 @@ var:
build_mar: 1
torbrowser_incremental_from:
- '[% IF c("var/tor-browser") %]14.0[% END %]'
- - '13.5.9'
- '13.5.7'
mar_channel_id: '[% c("var/projectname") %]-torproject-[% c("var/channel") %]'
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/7…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/7…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
2ee87ab2 by Pier Angelo Vendrame at 2024-10-28T12:32:13+01:00
Bug 41289: Fix --tor-browser in relprep.py.
--tor-browser enabled also Mullvad Browser, probably because of a
copy-paste error.
- - - - -
1 changed file:
- tools/relprep.py
Changes:
=====================================
tools/relprep.py
=====================================
@@ -92,7 +92,7 @@ class ReleasePreparation:
self.repo = Repo(self.base_path)
self.tor_browser = bool(kwargs.get("tor_browser", True))
- self.mullvad_browser = bool(kwargs.get("tor_browser", True))
+ self.mullvad_browser = bool(kwargs.get("mullvad_browser", True))
if not self.tor_browser and not self.mullvad_browser:
raise ValueError("Nothing to do")
self.android = kwargs.get("android", self.tor_browser)
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/2…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
9c66c1ac by Pier Angelo Vendrame at 2024-10-28T11:59:55+01:00
Bug 41282: Downgrade to Python 3.9.
MozBug 1924022 introduced a dependency on the Python built-in SSL
module.
This caused an error in our Linux builds, because we run them in a very
old version of Debian that still uses OpenSSL 1.1.0, which is not
compatible with Python SSL module since Python 3.10.
The less intrusive way to resolve this is to downgrade to Python 3.9.x,
which is still supported by all our projects.
Also, switch to hashes to verify the Python source tarball, as the
Python Software Foundation often rotates keys, which reduces the
advantages of verifying the signature rather than the hash for us.
- - - - -
2 changed files:
- − keyring/python.gpg
- projects/python/config
Changes:
=====================================
keyring/python.gpg deleted
=====================================
Binary files a/keyring/python.gpg and /dev/null differ
=====================================
projects/python/config
=====================================
@@ -1,5 +1,5 @@
# vim: filetype=yaml sw=2
-version: 3.11.3
+version: 3.9.20
filename: 'python-[% c("var/build_id") %].tar.[% c("compress_tar") %]'
container:
use_container: 1
@@ -24,9 +24,7 @@ input_files:
- project: container-image
- name: python
URL: 'https://www.python.org/ftp/python/[% c("version") %]/Python-[% c("version") %].tar.xz'
- gpg_keyring: python.gpg
- sig_ext: asc
- file_gpg_id: 1
+ sha256sum: 6b281279efd85294d2d6993e173983a57464c0133956fbbb5536ec9646beaf0c
- name: '[% c("var/compiler") %]'
project: '[% c("var/compiler") %]'
enable: '[% c("var/linux") %]'
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9…
You're receiving this email because of your account on gitlab.torproject.org.