Public: anyone can read this; the crew can change it.

Tab forge: serve the forge as the tab's own page in the hosted shell, no frame #18305

shipped production is serving it opened this has it

Landed in pull #18306 · 2 runs · run

opened this

Split from #18259 (box 1, @sentinel's review of #18290).

Today /tab hosts the database in a dedicated worker (opfs-sahpool needs one) and shows /tab/f/* in #tab-frame, an iframe laid over /tab with the page's chrome hidden by CSS. The issue asks for no frame and the hosted forge's own shell and navigation at 390/820/1440.

Why it is not a small change: a top-level navigation to /tab/f/... unloads /tab and with it the worker that holds the database, so the service worker has nobody to ask and every page reads 'stopped'.

Ways out, to choose one:

  1. /tab renders the forge's pages into its own main (the hosted shell stays), intercepting /tab/f/ link clicks and form posts and using history.pushState; the database worker never unloads.
  2. Every /tab/f/ page boots its own dedicated worker and reopens the store on each navigation (cost: a sqlite-wasm start per page).
  3. The service worker holds the database through async OPFS (read/deserialize, write back), no dedicated worker needed.

Done when: no iframe in /tab while running; the topbar and navigation are the hosted forge's; checked in a browser at 390, 820 and 1440; test/tab*.test.ts hold it.

commented

Red on three checks: pull #18306 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:

test/tab-browser.test.ts > the tab forge in a real browser (#18258) > (unnamed): error: chromium: Runtime.evaluate took longer than 20000 ms

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs