ma1 pushed to branch tor-browser-153.4.0esr-16.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
a1f275b9
by hackademix at 2026-09-30T14:25:50+02:00
3 changed files:
- toolkit/actors/NetErrorParent.sys.mjs
- toolkit/content/aboutNetError.mjs
- toolkit/modules/RemotePageAccessManager.sys.mjs
Changes:
| ... | ... | @@ -281,6 +281,17 @@ export class NetErrorParent extends EscapablePageParent { |
| 281 | 281 | win.openPreferences("privacy-doh");
|
| 282 | 282 | break;
|
| 283 | 283 | }
|
| 284 | + case "OpenTorBrowserManual": {
|
|
| 285 | + let browser = this.browsingContext.top.embedderElement;
|
|
| 286 | + if (browser) {
|
|
| 287 | + let url = "about:manual";
|
|
| 288 | + if (message.data.fragment) {
|
|
| 289 | + url += `#${message.data.fragment}`;
|
|
| 290 | + }
|
|
| 291 | + browser.documentGlobal.switchToTabHavingURI(url, true);
|
|
| 292 | + }
|
|
| 293 | + break;
|
|
| 294 | + }
|
|
| 284 | 295 | case "ShouldShowTorConnect":
|
| 285 | 296 | return lazy.TorConnect.shouldShowTorConnect;
|
| 286 | 297 | }
|
| ... | ... | @@ -374,6 +374,19 @@ function initOnionError() { |
| 374 | 374 | const learnMoreLink = document.getElementById("learnMoreLink");
|
| 375 | 375 | learnMoreLink.href = "about:manual#features__onion-services";
|
| 376 | 376 | |
| 377 | + for (const evType of ["click", "mousedown", "auxclick", "contextmenu"]) {
|
|
| 378 | + learnMoreLink.addEventListener(
|
|
| 379 | + evType,
|
|
| 380 | + event => {
|
|
| 381 | + event.preventDefault();
|
|
| 382 | + event.stopPropagation();
|
|
| 383 | + RPMSendAsyncMessage("OpenTorBrowserManual", {
|
|
| 384 | + fragment: "features__onion-services",
|
|
| 385 | + });
|
|
| 386 | + },
|
|
| 387 | + true
|
|
| 388 | + );
|
|
| 389 | + }
|
|
| 377 | 390 | setFocus("#netErrorButtonContainer > .try-again");
|
| 378 | 391 | |
| 379 | 392 | return true;
|
| ... | ... | @@ -108,6 +108,7 @@ export let RemotePageAccessManager = { |
| 108 | 108 | "Browser:ResetEnterpriseRootsPref",
|
| 109 | 109 | "DisplayOfflineSupportPage",
|
| 110 | 110 | "OpenTRRPreferences",
|
| 111 | + "OpenTorBrowserManual",
|
|
| 111 | 112 | ],
|
| 112 | 113 | RPMCheckAlternateHostAvailable: ["*"],
|
| 113 | 114 | RPMRecordGleanEvent: [
|