Skip to content

Commit 065b97a

Browse files
authored
Merge pull request #9 from kfhfardin/kfhfar/fortress-patch-variable
Rename internal codename TILION -> FORTRESS in patches comments
2 parents f3f932d + 83629e4 commit 065b97a

27 files changed

Lines changed: 98 additions & 98 deletions

File tree

patches/0004-components-embedder_support-user_agent_utils-cc.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ index 608bea5cb3..3f0bf7c03f 100644
99
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(kHeadless)) {
1010
- product.insert(0, "Headless");
1111
- }
12-
+ // TILION patch #2: never prepend "Headless" to the product. Under --headless the
12+
+ // FORTRESS patch #2: never prepend "Headless" to the product. Under --headless the
1313
+ // stock code makes the UA "HeadlessChrome/...", a blatant automation tell. We keep
1414
+ // it as real "Chrome/...".
1515

@@ -19,7 +19,7 @@ index 608bea5cb3..3f0bf7c03f 100644
1919
}
2020

2121
std::string GetUnifiedPlatform() {
22-
+ // TILION: persona OS token for the (reduced) UA string. Fixes the C1 instant-flag
22+
+ // FORTRESS: persona OS token for the (reduced) UA string. Fixes the C1 instant-flag
2323
+ // where navigator.userAgent said Linux while platform/Sec-CH-UA-Platform said
2424
+ // Windows. Browser-process read; control plane passes the full unified form,
2525
+ // e.g. "Windows NT 10.0; Win64; x64". Must agree with --uxr-platform/-ua-platform.
@@ -38,12 +38,12 @@ index 608bea5cb3..3f0bf7c03f 100644
3838
if (brand) {
3939
brand_version_list.emplace_back(brand.value(), version);
4040
}
41-
+ // TILION Layer 2: add a "Google Chrome" brand for a Chrome persona (we build
41+
+ // FORTRESS Layer 2: add a "Google Chrome" brand for a Chrome persona (we build
4242
+ // Chromium, so the official brand is absent). Closes the brand-list incoherence
4343
+ // (UA says Chrome, brands said Chromium). Browser-process read, no whitelist.
4444
+ {
4545
+ const base::CommandLine* p_cmd = base::CommandLine::ForCurrentProcess();
46-
+ // TILION: default to the "Google Chrome" brand (overridable). A stealth fork
46+
+ // FORTRESS: default to the "Google Chrome" brand (overridable). A stealth fork
4747
+ // must never advertise "Chromium"-only brands = a repackaged-Chromium signal.
4848
+ std::string p_brand = p_cmd->HasSwitch("uxr-ua-brand")
4949
+ ? p_cmd->GetSwitchValueASCII("uxr-ua-brand")
@@ -60,7 +60,7 @@ index 608bea5cb3..3f0bf7c03f 100644
6060
}
6161

6262
std::string GetPlatformForUAMetadata() {
63-
+ // TILION: persona-driven Sec-CH-UA-Platform (must match navigator.platform OS).
63+
+ // FORTRESS: persona-driven Sec-CH-UA-Platform (must match navigator.platform OS).
6464
+ {
6565
+ const base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
6666
+ if (cmd->HasSwitch("uxr-ua-platform"))
@@ -73,7 +73,7 @@ index 608bea5cb3..3f0bf7c03f 100644
7373
metadata.bitness = GetCpuBitness();
7474
metadata.wow64 = IsWoW64();
7575
metadata.platform_version = GetPlatformVersion();
76-
+ // TILION Layer 2: high-entropy Client Hints persona via cmdline (browser-process,
76+
+ // FORTRESS Layer 2: high-entropy Client Hints persona via cmdline (browser-process,
7777
+ // no renderer whitelist needed). Keeps userAgentData high-entropy values coherent
7878
+ // with the UA string + Sec-CH-UA (coherence rule C15).
7979
+ {

patches/0005-content-browser-renderer_host-render_process_host_impl-cc.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ index 4c144f58e7..24acc0ba0d 100644
2727
// Propagate the following switches to the renderer command line (along
2828
// with any associated values) if present in the browser command line.
2929
static const char* const kSwitchNames[] = {
30-
+ // TILION Layer 2: propagate persona switches to the renderer so renderer-side
30+
+ // FORTRESS Layer 2: propagate persona switches to the renderer so renderer-side
3131
+ // getters (navigator.*, WebGL) can read them. Web-undetectable: pages cannot
3232
+ // read /proc/cmdline, and the host is ours.
3333
switches::kDisableInProcessStackTraces,

patches/0010-third_party-blink-renderer-core-dom-element-cc.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ index aa3d9236fd..177c17bd88 100644
1818
}
1919

2020
+namespace {
21-
+// TILION: seeded sub-pixel DOMRect jitter. Single chokepoint Element::ClientQuads
21+
+// FORTRESS: seeded sub-pixel DOMRect jitter. Single chokepoint Element::ClientQuads
2222
+// covers getClientRects + getBoundingClientRect (both derive from these quads), so
2323
+// it is coherent by construction. <0.01px = invisible; stable per element+seed.
2424
+void UxrJitterQuads(Vector<gfx::QuadF>& quads) {
2525
+ uint32_t p_seed = 0u;
26-
+ // TILION P1-F/P2-C: fail-closed (no golden-constant), and key jitter on each
26+
+ // FORTRESS P1-F/P2-C: fail-closed (no golden-constant), and key jitter on each
2727
+ // corner offset RELATIVE to p1 (scroll-invariant) so width/height stay constant
2828
+ // across scroll/transform while still being noised and stable per element shape.
2929
+ if (!base::StringToUint(
@@ -57,7 +57,7 @@ index aa3d9236fd..177c17bd88 100644
5757
if (element_layout_object->IsBoxModelObject() ||
5858
element_layout_object->IsBR()) {
5959
element_layout_object->AbsoluteQuads(quads);
60-
+ UxrJitterQuads(quads); // TILION
60+
+ UxrJitterQuads(quads); // FORTRESS
6161
}
6262
}
6363

patches/0011-third_party-blink-renderer-core-execution_context-navigator_base-cc.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ index cccfafe8f9..9fe22fe44c 100644
66

77
#include "third_party/blink/renderer/core/execution_context/navigator_base.h"
88

9-
+#include "base/command_line.h" // TILION
9+
+#include "base/command_line.h" // FORTRESS
1010
+#include "base/uxr_config.h" // UXR persona via IPC
1111
#include "base/feature_list.h"
1212
#include "build/build_config.h"

patches/0012-third_party-blink-renderer-core-frame-local_dom_window-cc.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ index 3761d36b53..b39e4bd028 100644
1515
if (!GetFrame())
1616
return 0;
1717

18-
+ { // TILION: persona outer height (fixes outerHeight===innerHeight headless tell)
18+
+ { // FORTRESS: persona outer height (fixes outerHeight===innerHeight headless tell)
1919
+ int p_v = 0;
2020
+ if (base::UxrConfig::GetInstance().GetInt("uxr-outer-height", &p_v) && p_v > 0)
2121
+ return p_v;
@@ -28,7 +28,7 @@ index 3761d36b53..b39e4bd028 100644
2828
if (!GetFrame())
2929
return 0;
3030

31-
+ { // TILION: persona outer width
31+
+ { // FORTRESS: persona outer width
3232
+ int p_v = 0;
3333
+ if (base::UxrConfig::GetInstance().GetInt("uxr-outer-width", &p_v) && p_v > 0)
3434
+ return p_v;
@@ -41,7 +41,7 @@ index 3761d36b53..b39e4bd028 100644
4141
if (!GetFrame())
4242
return 0.0;
4343

44-
+ if (base::UxrConfig::GetInstance().Has("uxr-device-pixel-ratio")) { // TILION
44+
+ if (base::UxrConfig::GetInstance().Has("uxr-device-pixel-ratio")) { // FORTRESS
4545
+ double p_dpr = 0.0;
4646
+ if (base::StringToDouble(
4747
+ base::UxrConfig::GetInstance().Get("uxr-device-pixel-ratio"), &p_dpr) &&

patches/0013-third_party-blink-renderer-core-frame-navigator-cc.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index 583f05f8dd..0c9e855d22 100644
1212
- bool automation_enabled = false;
1313
- probe::ApplyAutomationOverride(GetExecutionContext(), automation_enabled);
1414
- return automation_enabled;
15-
+ // TILION patch #1 — navigator.webdriver is always false, returned natively
15+
+ // FORTRESS patch #1 — navigator.webdriver is always false, returned natively
1616
+ // from C++. No JS getter/descriptor/toString tell exists for a page to detect,
1717
+ // and it ignores the CDP ApplyAutomationOverride path (which can flip it true).
1818
+ return false;

patches/0014-third_party-blink-renderer-core-frame-navigator_concurrent_hardware-cc.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ index f5c0db2d1b..2ce917a9c4 100644
66

77
#include "base/system/sys_info.h"
88

9-
+#include <cstdlib> // TILION
10-
+#include "base/command_line.h" // TILION
9+
+#include <cstdlib> // FORTRESS
10+
+#include "base/command_line.h" // FORTRESS
1111
+#include "base/uxr_config.h"
1212
+#include "base/strings/string_number_conversions.h"
1313
+
1414
namespace blink {
1515

1616
unsigned NavigatorConcurrentHardware::hardwareConcurrency() const {
17-
+ // TILION Layer 2: persona-driven via renderer cmdline switch.
17+
+ // FORTRESS Layer 2: persona-driven via renderer cmdline switch.
1818
+ if (base::UxrConfig::GetInstance().Has("uxr-hw-concurrency")) {
19-
+ int v = 0; // TILION P1-A: StringToInt + clamp [1,128]
19+
+ int v = 0; // FORTRESS P1-A: StringToInt + clamp [1,128]
2020
+ if (base::StringToInt(
2121
+ base::UxrConfig::GetInstance().Get("uxr-hw-concurrency"), &v) &&
2222
+ v > 0)

patches/0015-third_party-blink-renderer-core-frame-navigator_device_memory-cc.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ index 05fa33e456..1bb8ec68e9 100644
66
#include "third_party/blink/renderer/core/dom/document.h"
77
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
88

9-
+#include <cmath> // TILION
10-
+#include <cstdlib> // TILION
11-
+#include "base/command_line.h" // TILION
12-
+#include "base/strings/string_number_conversions.h" // TILION
9+
+#include <cmath> // FORTRESS
10+
+#include <cstdlib> // FORTRESS
11+
+#include "base/command_line.h" // FORTRESS
12+
+#include "base/strings/string_number_conversions.h" // FORTRESS
1313
+#include "base/uxr_config.h"
1414
+
1515
namespace blink {
1616

1717
float NavigatorDeviceMemory::deviceMemory() const {
18-
+ // TILION Layer 2: persona-driven via renderer cmdline switch.
18+
+ // FORTRESS Layer 2: persona-driven via renderer cmdline switch.
1919
+ double v = 0.0;
20-
+ // TILION P1-A: StringToDouble + snap to the web-exposed buckets {0.25..8}.
20+
+ // FORTRESS P1-A: StringToDouble + snap to the web-exposed buckets {0.25..8}.
2121
+ if (base::StringToDouble(
2222
+ base::UxrConfig::GetInstance().Get("uxr-device-memory"), &v) &&
2323
+ v > 0.0) {

patches/0016-third_party-blink-renderer-core-frame-navigator_id-cc.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ index 22243ebf5e..30e78e0130 100644
66

77
#include "third_party/blink/renderer/core/frame/navigator_id.h"
88

9-
+#include "base/command_line.h" // TILION: persona via renderer cmdline switches
9+
+#include "base/command_line.h" // FORTRESS: persona via renderer cmdline switches
1010
+#include "base/uxr_config.h"
1111
+
1212
#include "base/feature_list.h"
@@ -16,7 +16,7 @@ index 22243ebf5e..30e78e0130 100644
1616
}
1717

1818
String NavigatorID::platform() const {
19-
+ // TILION Layer 2: persona-driven via renderer cmdline switch (whitelisted in
19+
+ // FORTRESS Layer 2: persona-driven via renderer cmdline switch (whitelisted in
2020
+ // render_process_host_impl.cc). Web-undetectable.
2121
+ {
2222
+ if (base::UxrConfig::GetInstance().Has("uxr-platform"))

patches/0017-third_party-blink-renderer-core-frame-navigator_language-cc.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ index 75cd346131..376dece63a 100644
1818
}
1919

2020
void NavigatorLanguage::EnsureUpdatedLanguage() {
21-
+ // TILION Layer 2: persona languages (navigator.languages/language), coherent with
21+
+ // FORTRESS Layer 2: persona languages (navigator.languages/language), coherent with
2222
+ // timezone+locale (rule C5). Control plane should set the Accept-Language HEADER to
2323
+ // match (browser-process). Comma-separated, e.g. "en-US,en".
2424
+ {
@@ -27,9 +27,9 @@ index 75cd346131..376dece63a 100644
2727
+ if (!p_langs.empty()) {
2828
+ languages_ = ParseAndSanitize(p_langs);
2929
+ languages_dirty_ = false;
30-
+ // TILION: align ICU default locale + flush V8 so Intl/toLocaleString follow
30+
+ // FORTRESS: align ICU default locale + flush V8 so Intl/toLocaleString follow
3131
+ // the persona language (C5). The notification clears V8 cached Intl locale.
32-
+ // TILION P0-E fix: icu::Locale::setDefault is process-global and NOT
32+
+ // FORTRESS P0-E fix: icu::Locale::setDefault is process-global and NOT
3333
+ // thread-safe; only touch it on the main thread (workers would race).
3434
+ if (!languages_.empty() && IsMainThread()) {
3535
+ base::i18n::SetICUDefaultLocale(languages_.front().Utf8());

0 commit comments

Comments
 (0)