gstack/browse/test
Garry Tan ac05284481
fix(browse): allow about:blank so a restarted daemon can initialise
The daemon opens its own first tab on about:blank, so blocking it in
validateNavigationUrl meant a restarted daemon could never recreate the
blank tab it starts from — and `browse newtab about:blank`, which
`make-pdf setup` runs as its Chromium smoke test, failed and surfaced
as "Chromium failed to launch" against a healthy browser.

Allow about:blank ONLY, never the about: scheme: about:blank has no
origin, loads nothing and runs nothing, while about:config and friends
are real surfaces. Exact href match (lower-cased, since the URL parser
normalises the protocol but not the opaque part), so about:blankfoo
stays blocked.

Contributed by @jwilk-hrep (PR #2537).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 20:20:51 -07:00
..
fixtures
…
activity.test.ts
…
adversarial-security.test.ts
…
batch.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
bridge-chromium-e2e.test.ts
…
browse-client.test.ts
…
browser-manager-custom-chromium.test.ts
…
browser-manager-unit.test.ts v1.58.3.0 feat: gbrowser anti-detection Layer C stealth (#2047) 2026-06-18 10:45:05 -07:00
browser-skill-commands.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
browser-skill-write.test.ts
…
browser-skills-e2e.test.ts
…
browser-skills-storage.test.ts
…
build-command-response.test.ts
…
build.test.ts
…
bun-polyfill.test.ts
…
cdp-allowlist.test.ts
…
cdp-e2e.test.ts
…
cdp-inspector-history-cap.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
cdp-mutex.test.ts
…
cdp-session-cleanup.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
claude-bin.test.ts
…
cli-setsid-daemonize.test.ts v1.43.2.0 fix wave: post-Daegu paper-cut — 18 fixes, 28 bisect commits (#1642) 2026-05-21 21:21:07 -07:00
cli-supervisor.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
commands.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
compare-board.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
config.test.ts
…
content-security.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
cookie-import-browser.test.ts
…
cookie-picker-routes.test.ts
…
daemon-mismatch-refuse.test.ts
…
data-platform.test.ts
…
domain-skills-e2e.test.ts
…
domain-skills-storage.test.ts
…
dual-listener.test.ts test(browse): align dual-listener and terminal-agent static guards with the current source 2026-08-14 20:20:50 -07:00
dx-polish.test.ts
…
error-handling.test.ts
…
extension-sender-auth.test.ts fix(extension): deny token/port reads to content-script and foreign senders 2026-08-14 20:20:50 -07:00
extension-token.test.ts v1.63.0.0 feat: GStack 2 fork port wave — egress receipts, context-bill, sharded gate, /health fix (#2541) 2026-08-14 09:28:56 -07:00
file-drop.test.ts
…
file-permissions.test.ts
…
find-browse.test.ts
…
findport.test.ts v1.44.1.0 fix wave: post-windhoek paper-cut — 9 community PRs in one bundle (#1682) 2026-05-25 10:57:15 -07:00
from-file-path-validation.test.ts
…
gstack-config.test.ts fix(gstack-config): accept @local endpoint ids for brain_trust_policy 2026-07-10 11:21:19 -07:00
gstack-update-check.test.ts test(update-check): fixture links gstack-egress-lib.sh — all 38 tests failed on main 2026-08-14 20:20:50 -07:00
handoff.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
learnings-injection.test.ts
…
memory-command.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
memory-leak-reproducer.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
pair-agent-e2e.test.ts v1.63.0.0 feat: GStack 2 fork port wave — egress receipts, context-bill, sharded gate, /health fix (#2541) 2026-08-14 09:28:56 -07:00
pair-agent-tunnel-eval.test.ts
…
path-validation.test.ts
…
pdf-flags.test.ts
…
platform.test.ts
…
proxy-config.test.ts
…
proxy-redact.test.ts
…
pty-inject-scan.test.ts
…
pty-session-lease.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
regression-pr1169-pdf-from-file-invalid-json.test.ts
…
restart-env.test.ts v1.55.0.0 fix wave: gbrain data-loss guards + browser crash-loop + 6 more (#1808) 2026-05-30 14:57:07 -07:00
sanitize.test.ts
…
screenshot-size-guard.test.ts
…
security-adversarial-fixes.test.ts
…
security-adversarial.test.ts
…
security-audit-r2.test.ts
…
security-bench-ensemble-live.test.ts
…
security-bench-ensemble.test.ts
…
security-bench.test.ts
…
security-bunnative.test.ts
…
security-classifier-download-cleanup.test.ts
…
security-classifier-tdz.test.ts
…
security-classifier.test.ts
…
security-integration.test.ts
…
security-live-playwright.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
security-review-flow.test.ts
…
security-sidecar-client.test.ts
…
security-sidepanel-dom.test.ts
…
security-source-contracts.test.ts
…
security.test.ts
…
server-auth.test.ts v1.63.0.0 feat: GStack 2 fork port wave — egress receipts, context-bill, sharded gate, /health fix (#2541) 2026-08-14 09:28:56 -07:00
server-embedder-terminal-port.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
server-factory.test.ts v1.43.3.0 fix(browse): headed-mode idle timer + onDisconnect target wrong BrowserManager for embedders (#1645) 2026-05-21 22:15:37 -07:00
server-flush-trackers.test.ts
…
server-no-import-side-effects.test.ts
…
server-proxy-fail-fast.test.ts
…
server-pty-lease-routes.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
server-sanitize-surrogates.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
server-tmp-state-path.test.ts
…
sidebar-security.test.ts
…
sidebar-tabs.test.ts test(browse): delete the orphaned sidebar chat-queue suite; align sidebar-ux/tabs with the PTY-only sidebar 2026-08-14 20:20:50 -07:00
sidebar-unit.test.ts
…
sidebar-ux.test.ts test(browse): delete the orphaned sidebar chat-queue suite; align sidebar-ux/tabs with the PTY-only sidebar 2026-08-14 20:20:50 -07:00
sidepanel-patient-autoconnect.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
sidepanel-reattach.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
sidepanel-restart-dispose.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
skill-token.test.ts
…
snapshot.test.ts fix(test): remove all 8 delayed process.exit teardown bombs — the tier-1 gate can finally fail 2026-08-14 20:20:51 -07:00
socks-bridge.test.ts
…
sse-helpers.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
sse-session-cookie.test.ts
…
state-ttl.test.ts
…
stealth-extended.test.ts v1.58.3.0 feat: gbrowser anti-detection Layer C stealth (#2047) 2026-06-18 10:45:05 -07:00
stealth-layer-c.test.ts v1.58.3.0 feat: gbrowser anti-detection Layer C stealth (#2047) 2026-06-18 10:45:05 -07:00
stealth-webdriver.test.ts v1.58.3.0 feat: gbrowser anti-detection Layer C stealth (#2047) 2026-06-18 10:45:05 -07:00
tab-each.test.ts
…
tab-guardrail.test.ts v1.51.0.0 feat: $B memory diagnostic + 4 CDP-resource leak fixes (#1751) 2026-05-27 16:09:38 -07:00
tab-isolation.test.ts
…
tab-session-frame-detach.test.ts
…
telemetry.test.ts
…
terminal-agent-detach-reattach.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-integration.test.ts
…
terminal-agent-internal-handler.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-keepalive.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-pid-identity.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-ring-buffer-runtime.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-session-routing.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent-watchdog.test.ts v1.44.0.0 feat: long-lived sidebar — keepalive, restart, re-attach, scrollback replay (#1678) 2026-05-24 01:43:51 -07:00
terminal-agent.test.ts test(browse): align dual-listener and terminal-agent static guards with the current source 2026-08-14 20:20:50 -07:00
test-server.ts
…
token-registry.test.ts
…
tunnel-gate-unit.test.ts v1.57.8.0 feat: browse js/eval --out render-to-file (canonical Chromium for offline rendering) (#1929) 2026-06-09 21:02:30 -07:00
url-validation.test.ts fix(browse): allow about:blank so a restarted daemon can initialise 2026-08-14 20:20:51 -07:00
watch.test.ts
…
watchdog.test.ts
…
welcome-page.test.ts
…
xvfb.test.ts
…