Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,56 @@ generated_file("input_grd_files") {
deps = [ "front_end" ]
}

generated_file("remote_files") {
outputs = [ "$target_gen_dir/remote_files.json" ]

data_keys = [ "remote_files" ]

output_conversion = "json"
rebase = target_gen_dir

deps = [ "front_end" ]
}

# Archive of all files that chrome-devtools-frontend.appspot.com serves, i.e.
# the GRD files plus the remote-only files. Official builders upload this
# archive for every Chrome version.
#
# The archive layout is independent of the location of DevTools in the source
# tree: all files are stored under devtools-frontend/front_end/.
action("devtools_frontend_zip") {
script = "scripts/build/zip_devtools_frontend.py"

deps = [
":devtools_frontend_resources",
":expected_grd_files",
":remote_files",
]

inputs = [
"$target_gen_dir/expected_grd_files.json",
"$target_gen_dir/remote_files.json",
]

outputs = [ "$root_out_dir/devtools-frontend.zip" ]
depfile = "$target_gen_dir/$target_name.d"

args = [
"--file-list",
rebase_path("$target_gen_dir/expected_grd_files.json", root_build_dir),
"--file-list",
rebase_path("$target_gen_dir/remote_files.json", root_build_dir),
"--base-dir",
rebase_path(target_gen_dir, root_build_dir),
"--prefix",
"devtools-frontend",
"--output",
rebase_path("$root_out_dir/devtools-frontend.zip", root_build_dir),
"--depfile",
rebase_path(depfile, root_build_dir),
]
}

_compressable_grd_files = filter_include(_expected_grd_files,
[
"*.css",
Expand Down
11 changes: 9 additions & 2 deletions config/releases/0.7.0.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"product_version": "0.7.0",
"chromium_version": "158.0.8127.18",
"chromium_version": "159.0.8154.13",
"integration_repository": "BrowserOperator/browser-operator-core",
"required_merged_pr": 111,
"required_merged_pr": 114,
"required_base_branch": "main",
"allowed_mergers": [
"tysonthomas9"
],
"additional_merged_prs": [
{
"repository": "BrowserOperator/build-script",
"number": 1,
"base_branch": "main"
}
]
}
1 change: 1 addition & 0 deletions config/updater/macos-local-test.gni
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
browser_operator_updater_branding = {
mac_update_channel = "autoupdate-test-${target_cpu}"
# Isolated loopback update qualification. Contains public keys only.
browser_name = "Browser Operator"
browser_product_name = "Browser Operator"
Expand Down
1 change: 1 addition & 0 deletions config/updater/macos-production.gni
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
browser_operator_updater_branding = {
mac_update_channel = "stable"
# Production macOS update identity and public trust roots. Private keys stay
# outside Git.
browser_name = "Browser Operator"
Expand Down
53 changes: 53 additions & 0 deletions docs/chromium-158-stable-refresh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Chromium158 stable refresh

The owner subsequently selected [159.0.8154.13](chromium-159-stable-refresh.md).
This document retains the previous target's preparation and preservation notes.

Target158.0.8127.37, upstream commit b8c2be851f62f6a394ec57955d7f31335d7cb6d4.
The previous158.0.8127.18 ARM64/universal R2 DMGs and frozen inputs are preserved.
Builds use BrowserOperator/build-script's reusable entry point and the existing
reviewed core helpers. Production auto-update, stable app identities, CUP/CRX
trust roots, AI chat/native update action, toolbar, branding and CORS integration
remain enabled. No release upload or Omaha catalog promotion is authorized.

The ten ordered native patches and74 pinned branding assets apply cleanly to
pristine158.0.8127.37. The existing reviewed158.0.8127.18 series is reused after this compatibility
check; identical patch files are not duplicated for each engine patch release.
This is not a claim that every future Chromium major version is compatible. Future same-branch builds may compatibility-check the
nearest reviewed baseline with --patch-series-version; new branches need review.

DEPS moves stock DevTools from a7812cf737f651c890965e0c274dd52db2520d33 to
047c90eca37c7170d826d72245d5df9281989cf3. Their five-file delta covers
DOMTreeWidget behavior/tests/CSS and What's New content. This fork does not ship
DOMTreeWidget.ts or that CSS, so those new-widget fixes are not copied as an
unrelated implementation. Existing targeted security backports remain and the
AI chat tree is unchanged. Matching stock DevTools is preserved for pinned tools.

The reusable driver validates old source against reviewed patches, verifies its
backup, restores stock DevTools before gclient, and refuses unknown edits. It
builds both architectures before freezing their common provenance. Completion
requires subprocess success and artifact verification. Driver/core source and
config changes invalidate resume state. Six compile jobs and a5GiB free-space
guard bound this16GiB host. Existing native output directories are reused; prior
signed releases and frozen inputs are never silently removed.

A newer production updater cannot be safely restored to an older installed
baseline merely by launching the old app. Static signing/notarization may emit
an explicit candidate manifest with runtime tests pending. A hash-checked export
lets a real standard test user run the production installed-app/native-updater
tests without access to the signing user's home or credentials. Only completed
runtime checks create a release manifest. No temporary HOME or alternate test
updater identity substitutes for production qualification.

Current validation: patch/branding compatibility, driver safety checks and
candidate-only manifest checks pass. Independent agent review is required before
compilation; actual build/runtime/signing status is recorded in private run logs.
Windows remains queued until Mac ARM64/universal qualification is complete and
will use the same entry point once its version-aware backend is ported/tested.
The existing Windows pilot approval is not authorization for a replacement VM.

Core PR114 stacks on the0.7.0 integration PR111; the reusable driver is
BrowserOperator/build-script PR1. After the parent merges, retarget
this PR to main before owner merge. The publication policy points to this
refresh PR and its complete source tree, and also requires owner merge of driver PR1; old R2 candidates remain held and are
not reused for the newer native version.
54 changes: 54 additions & 0 deletions docs/chromium-159-stable-refresh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Chromium 159 release candidate

The owner selected Chromium **159.0.8154.13**, upstream commit
`4d790f9eb4c8abe65b8aaa3feba664e7c734ba56`. This supersedes the unfinished
158.0.8127.37 packaging target. Its ARM64 and Intel builds, frozen inputs,
universal merge and diagnostics remain preserved. Earlier signed 158 DMGs
remain available as the upgrade baseline.

The new version uses the shared `BrowserOperator/build-script` entry point.
Its ten native patches carry forward the current toolbar, CORS, native AI
update command and complete branding changes. The same 74 theme assets and
two toolbar icons are retained. The earlier 159.0.8144.0 test series is not
used: it lacks the latest AI update and branding patches and belongs to a
different Chromium build branch.

Patch conflicts retain upstream 159 additions and removals. Parsed XML checks
preserve every active upstream message ID, including whitespace-formatted
attributes that text matching misses. The custom manual-update fallback ID is
the sole intentional added message. New Chromium
product labels receive Browser Operator branding. Upstream copyright and
ChromiumOS attribution are preserved.

Production auto-update stays enabled with the existing application identities,
endpoint, CUP key and CRX trust roots. The product version remains 0.7.0.
Production plist metadata explicitly uses the `stable` update channel; test
configurations retain their own architecture-specific channel. Both architecture
inputs must have identical source/frontend provenance before a
universal merge. Signing, Apple notarization, mounted-DMG verification and
actual installed ARM64/x86_64 runtime checks remain required.

The version-aware driver records an explicit per-CPU object-cache layout.
This host reuses `out/Release_158_arm64` and `out/Release_158_x64` without moving
or duplicating them. The directory names are historical; the selected source,
GN settings, app/framework versions and frozen manifests must all prove 159.
The saved layout lets future compatible builds change the release version
without reallocating caches. Six jobs and the 5 GiB reserve remain enforced.
Frozen 158 apps, signed artifacts and logs are not overwritten.

The target's stock DevTools revision is
`3d48567555b6795967c376050698efe2bf4f0f98`. Matching stock tools are synced before
the AI fork is relinked; relevant upstream security changes must be reviewed
against the fork separately. Existing AI behavior and security backports must
survive. A successful stock sync alone is not runtime security qualification.

The release policy names this exact engine version and still requires owner
merge of core PR114 and build-script PR1. PR114 remains stacked on integration
PR111; retarget it to `main` after its parent merges. No candidate upload,
public release or production Omaha catalog promotion is authorized before the
matching owner merges. Windows follows completed Mac qualification through the
same entry point, with a version-aware Windows backend and actual tests.

Current status is recorded in the private run directory. Patch compatibility,
independent review, compilation, signing and runtime tests are distinct gates;
none may be inferred from a previous version's results.
6 changes: 6 additions & 0 deletions front_end/core/i18n/locales/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ group("locales") {
data += [ "$target_gen_dir/$locale.json" ]
}

_remote_files = []
foreach(locale, remote_devtools_locales) {
_remote_files += [ "$target_gen_dir/$locale.json" ]
}

metadata = {
grd_files = data
remote_files = _remote_files
}
}
74 changes: 74 additions & 0 deletions patches/chromium/159.0.8154.13/01-executable-naming.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc
index 1a6b899b4bc3a35a53ca99d9b8b6d8cf25e7ea6a..d1125df31af0476e47c066ac2cc28c1ebee648b6 100644
--- a/chrome/common/chrome_constants.cc
+++ b/chrome/common/chrome_constants.cc
@@ -24,17 +24,17 @@ const char kChromeVersion[] = CHROME_VERSION_STRING;
// kHelperProcessExecutablePath
//
// In one condition, our tests will be built using the Chrome branding
-// though we want to actually execute a Chromium branded application.
+// though we want to actually execute a Browser Operator branded application.
// This happens for the reference build on Mac. To support that case,
-// we also include a Chromium version of each of the four constants and
+// we also include a Browser Operator version of each of the four constants and
// in the UITest class we support switching to that version when told to
// do so.

#if BUILDFLAG(IS_WIN)
const base::FilePath::CharType kBrowserProcessExecutableName[] =
- FPL("chrome.exe");
+ FPL("browseroperator.exe");
const base::FilePath::CharType kHelperProcessExecutableName[] =
- FPL("chrome.exe");
+ FPL("browseroperator.exe");
#elif BUILDFLAG(IS_MAC)
const base::FilePath::CharType kBrowserProcessExecutableName[] =
FPL(PRODUCT_FULLNAME_STRING);
@@ -42,11 +42,11 @@ const base::FilePath::CharType kHelperProcessExecutableName[] =
FPL(PRODUCT_FULLNAME_STRING " Helper");
#elif BUILDFLAG(IS_ANDROID)
// NOTE: Keep it synced with the process names defined in AndroidManifest.xml.
-const base::FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
+const base::FilePath::CharType kBrowserProcessExecutableName[] = FPL("browseroperator");
const base::FilePath::CharType kHelperProcessExecutableName[] =
FPL("sandboxed_process");
#elif BUILDFLAG(IS_POSIX)
-const base::FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
+const base::FilePath::CharType kBrowserProcessExecutableName[] = FPL("browseroperator");
// Helper processes end up with a name of "exe" due to execing via
// /proc/self/exe. See bug 22703.
const base::FilePath::CharType kHelperProcessExecutableName[] = FPL("exe");
@@ -54,9 +54,9 @@ const base::FilePath::CharType kHelperProcessExecutableName[] = FPL("exe");

#if BUILDFLAG(IS_WIN)
const base::FilePath::CharType kBrowserProcessExecutablePath[] =
- FPL("chrome.exe");
+ FPL("browseroperator.exe");
const base::FilePath::CharType kHelperProcessExecutablePath[] =
- FPL("chrome.exe");
+ FPL("browseroperator.exe");
#elif BUILDFLAG(IS_MAC)
const base::FilePath::CharType kBrowserProcessExecutablePath[] =
FPL(PRODUCT_FULLNAME_STRING ".app/Contents/MacOS/" PRODUCT_FULLNAME_STRING);
@@ -67,16 +67,16 @@ const base::FilePath::CharType
const base::FilePath::CharType kGoogleChromeBrowserProcessExecutablePath[] =
FPL("Google Chrome.app/Contents/MacOS/Google Chrome");
const base::FilePath::CharType kChromiumBrowserProcessExecutablePath[] =
- FPL("Chromium.app/Contents/MacOS/Chromium");
+ FPL("Browser Operator.app/Contents/MacOS/Browser Operator");
const base::FilePath::CharType kHelperProcessExecutablePath[] =
FPL(PRODUCT_FULLNAME_STRING
" Helper.app/Contents/MacOS/" PRODUCT_FULLNAME_STRING " Helper");
#elif BUILDFLAG(IS_ANDROID)
-const base::FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
-const base::FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
+const base::FilePath::CharType kBrowserProcessExecutablePath[] = FPL("browseroperator");
+const base::FilePath::CharType kHelperProcessExecutablePath[] = FPL("browseroperator");
#elif BUILDFLAG(IS_POSIX)
-const base::FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
-const base::FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
+const base::FilePath::CharType kBrowserProcessExecutablePath[] = FPL("browseroperator");
+const base::FilePath::CharType kHelperProcessExecutablePath[] = FPL("browseroperator");
#endif // OS_*

#if BUILDFLAG(IS_MAC)
104 changes: 104 additions & 0 deletions patches/chromium/159.0.8154.13/02-devtools-cors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
diff --git a/chrome/browser/ui/webui/devtools/devtools_ui.cc b/chrome/browser/ui/webui/devtools/devtools_ui.cc
index d2056022368f01d8b91f39d421986bb157d4a237..0c446fa5590f5e151194bf7c9c52010389229cdd 100644
--- a/chrome/browser/ui/webui/devtools/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools/devtools_ui.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/webui/devtools/devtools_ui.h"

#include "base/command_line.h"
+#include "base/functional/callback_helpers.h"
#include "base/strings/string_util.h"
#include "build/util/chromium_git_revision.h"
#include "chrome/browser/devtools/devtools_availability_checker.h"
@@ -14,12 +15,16 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/cors_origin_pattern_setter.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/common/bindings_policy.h"
+#include "services/network/public/mojom/cors_origin_pattern.mojom.h"
#include "third_party/abseil-cpp/absl/strings/str_format.h"
+#include "url/gurl.h"
+#include "url/origin.h"

// static
GURL DevToolsUI::GetProxyURL(const std::string& frontend_url) {
@@ -84,6 +89,74 @@ DevToolsUI::DevToolsUI(content::WebUI* web_ui)
std::make_unique<DevToolsDataSource>(
std::move(factory), chrome::kChromeUIDevToolsRemoteHost));
}
+ // Allow DevTools UI (devtools://devtools) to make CORS requests to
+ // all HTTPS hosts, localhost (HTTP/HTTPS), and loopback addresses.
+ {
+ const url::Origin source =
+ url::Origin::Create(GURL("devtools://devtools"));
+ std::vector<network::mojom::CorsOriginPatternPtr> allow_patterns;
+
+ // Allow all hosts for https on any port.
+ constexpr uint16_t kAnyPort = 0;
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"https",
+ /*domain=*/"",
+ /*port=*/kAnyPort,
+ network::mojom::CorsDomainMatchMode::kAllowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowAnyPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ // mcp.atlassian.com:443 (HTTPS)
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"https",
+ /*domain=*/"mcp.atlassian.com",
+ /*port=*/443,
+ network::mojom::CorsDomainMatchMode::kDisallowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowOnlySpecifiedPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ // localhost (any port) — HTTP
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"http",
+ /*domain=*/"localhost",
+ /*port=*/kAnyPort,
+ network::mojom::CorsDomainMatchMode::kAllowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowAnyPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ // localhost (any port) — HTTPS
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"https",
+ /*domain=*/"localhost",
+ /*port=*/kAnyPort,
+ network::mojom::CorsDomainMatchMode::kAllowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowAnyPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ // 127.0.0.1 (any port) — HTTPS only
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"https",
+ /*domain=*/"127.0.0.1",
+ /*port=*/kAnyPort,
+ network::mojom::CorsDomainMatchMode::kDisallowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowAnyPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ // ::1 (any port) — HTTPS only
+ allow_patterns.push_back(network::mojom::CorsOriginPattern::New(
+ /*protocol=*/"https",
+ /*domain=*/"::1",
+ /*port=*/kAnyPort,
+ network::mojom::CorsDomainMatchMode::kDisallowSubdomains,
+ network::mojom::CorsPortMatchMode::kAllowAnyPort,
+ network::mojom::CorsOriginAccessMatchPriority::kDefaultPriority));
+
+ std::vector<network::mojom::CorsOriginPatternPtr> block_patterns;
+ content::CorsOriginPatternSetter::Set(browser_context, source,
+ std::move(allow_patterns),
+ std::move(block_patterns),
+ base::DoNothing());
+ }
}

DevToolsUI::~DevToolsUI() = default;
Loading
Loading