Skip to content

serving: browser Back can restore a public patch with a closed client #341

Closed

Description

@allisonmahmood

Problem

Leaving a public patch and returning with browser Back can restore a ready-looking page whose client has permanently closed. A normal route change rejects unknown_outcome until the user reloads.

Reproduction

  1. Open a public tier-1 patch in Chromium with normal back/forward caching enabled.
  2. Navigate the top-level browser to another page.
  3. Press Back. Confirm pageshow.persisted is true.
  4. Click a normal in-patch route button. The URL does not change and the actual client rejects unknown_outcome.
  5. Reload manually. The route button works again.

The investigator and independent reviewer used the real production shell, broker, client and cache/CSP settings over synthetic offline HTTP fixtures. The reviewer observed persisted=true, a restored frame, one actual click, the rejection on screen and unchanged URL. The same measured control with BFCache disabled had persisted=false and successful navigation. One earlier disabled-control attempt timed out and is not treated as a passing control; its cause was not established.

Playwright normally passes --disable-back-forward-cache. The failing runs removed that automation flag and checked the actual browser command line. This is Chromium public-cache behavior, not a claim about every browser or private company page. No full hosted backend was exercised.

Cause and smallest change

The broker and client close on pagehide. BFCache restoration resumes that closed document without rerunning initialization, and neither handles persisted pageshow.

Reload the whole shell on a persisted return to establish a fresh document and broker. Preserve teardown and never replay pending operations or reopen the old port. The requested behavior is ordinary browser return-to-page functionality.

Audited at ef3e790. Found and independently reproduced by separate GPT-6 Astra agents in Oh My Pi. Ordinary local product workflows only, with synthetic data and no live services.

Activity

  1. added
    bug
    needs-triage
    area:server
    area:cli
    on Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:serverbugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions