Files
holesail-browser/extension/wrong-domain.html
T
Raven Scott e5a1fa71fe
CI / Build & Test (push) Successful in 3m21s
fix: comprehensive bug fixes, security improvements, and feature additions
Critical fixes:
- Fix wrong registry key (com.bridgeswarm → com.holesail.browser) in
  update-native-manifest-extension-id.ps1 — script was always failing on Windows
- Create missing wrong-domain.html redirect page for .host.test URLs
- Remove options_ui pointing to non-existent options.html from manifest

High-priority bug fixes:
- ssh-manager: track and kill orphaned printf FIFO writer when key auth succeeds
- ssh-manager: fix uncancelled 2000ms fallback password timer (assign to fallbackTimer,
  clear in cancelPasswordWatch); fix null-check before removeAllListeners
- ssh-manager: add 30s Promise.race timeout to holesailInst.ready()
- backup-manager: fix macOS cp -R nesting bug by removing destination before copy;
  add tar -tzf integrity check after archive creation
- host.js: restoreBackup now stops running tunnels before restore and re-starts them
- holesail-manager: fix stale closure bug in virtual host and service tunnel
  error/close handlers (guard with v.holesail === hs check)
- dashboard.js: remove dead setText('dashTabs', ...) call referencing non-existent element

Medium improvements:
- manifest: remove unused storage and scripting permissions; restrict
  web_accessible_resources match from <all_urls> to chrome-extension://*/*
- background.js: fix self-referential browser alias (globalThis.browser ?? chrome);
  add 30s per-request timeout to send(); clean up dashboardTabs on tab close
- holesail-manager: gate saveStateSync stderr log behind DEBUG flag; updateSettings
  now returns requiresRestart:true when proxy port changes; add backupRetention field
- host.js: pass requiresRestart through in updateSettings response
- dashboard.js: remove dead loadSettings() function; add requiresRestart warning toast;
  add chrome.runtime.lastError guards in fetchState and refreshBackups;
  set dynamic version from chrome.runtime.getManifest()
- dashboard.html: remove stray </button> tag; add id="sidebarVersion" for dynamic version
- install.sh/install.ps1: fetch version from RELEASE_BASE/VERSION instead of hardcoded 1.0.0
- install.ps1: add Firefox .xpi download and Firefox registry key
- update-native-manifest-extension-id.sh: add optional Firefox manifest update
- certificate-authority.js: defer RSA key generation to setImmediate to avoid blocking
  startup; expose caReady promise
- host.js: await caReady before starting HTTPS proxy

Documentation:
- REMOTE-DESKTOP.md: correct RDP WebSocket protocol field names to match rdp-manager.js
  (destLeft/destTop/destRight/destBottom, mouseMove/mouseButton/keyEvent/keyUnicode)

Feature additions:
- dashboard.js: add Reconnect button for service tunnels in error/closed state
- https-proxy.js: add WebSocket upgrade handler to support ws:// over *.hole.sail
- connect-proxy.js: add 10s header-read timeout to protect against idle connections
- native-host: add bare-fs as explicit dependency
2026-02-28 19:00:13 -05:00

78 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wrong Domain — Holesail Browser</title>
<style>
:root {
--bg: #0f1117;
--surface: #1a1d27;
--card: #21253a;
--accent: #4f8ef7;
--text: #e2e8f0;
--muted: #8892a4;
--border: #2d3352;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 2.5rem 3rem;
max-width: 520px;
width: 100%;
text-align: center;
}
.icon { font-size: 3rem; margin-bottom: 1rem; }
h1 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
code {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.15em 0.4em;
font-family: 'JetBrains Mono', monospace;
font-size: 0.9em;
color: var(--accent);
}
.host-display {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.75rem 1rem;
margin: 1rem 0;
font-family: 'JetBrains Mono', monospace;
color: var(--accent);
word-break: break-all;
}
</style>
</head>
<body>
<div class="card">
<div class="icon"></div>
<h1>Wrong Domain</h1>
<p>You tried to visit a <code>.host.test</code> address. Holesail Browser uses the <code>.hole.sail</code> domain instead.</p>
<div class="host-display" id="hostDisplay"></div>
<p>Replace <code>.host.test</code> with <code>.hole.sail</code> in the URL and try again.</p>
</div>
<script>
const params = new URLSearchParams(location.search);
const host = params.get('host') || '';
const suggested = host.replace(/\.host\.test$/, '.hole.sail');
document.getElementById('hostDisplay').textContent =
host ? host + ' → ' + suggested : '(unknown host)';
</script>
</body>
</html>