Sign-out: reach other tabs when storage refuses the sign-out's writes even after the wipe
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start with the API explorer section of DESIGN.md and the sign-out code that writes Studio:ExplorerAuthEpoch and Studio:AppSignOut to localStorage, as described in #1956. Before any change, decide whether a BroadcastChannel fallback is worth its partial coverage, since the issue itself calls that a design call. Done means that decision is recorded and, if approved, the live-tab path is specified and tested.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
A sign-out reaches other tabs through localStorage. It bumps the API explorer's sign-out generation (Studio:ExplorerAuthEpoch) and writes the Studio:AppSignOut announcement. #1956 makes both survive the sign-out's own storage wipe, and retries each once after the wipe has made room. Two cases are left for a store that refuses even that retry:
- Generation refused twice. If both the collapse and its retry are refused, the old generation stays current. A tab that missed the live event and reloads keeps an explorer credential stamped before the sign-out. This tab writes the owed collapse on its next entity sign-out, but a reload forgets that it is owed.
- Announcement refused twice. It is never sent. #1956 does this on purpose: an announcement sent late could end a session the user has signed back into in another tab (see the API explorer section of
DESIGN.md).
Both need a store that refuses writes right after it has been emptied, such as a broken quota, a storage policy, or a private-mode quirk. Neither happens on a normal sign-out.
- A sign-in marker refused twice (from #1969). If storage refuses both removing and blanking a signed-out entity's marker, #1969 retries the removal later. If another tab signed in again at the same URL in the meantime, the retry can delete that new marker, because the stored value is the same either way. When the refused value couldn't be read, the retry deletes whatever is stored. Either way the entity just looks signed out on the next load.
Possible fix
Add a second cross-tab channel for when storage refuses every write, for example a BroadcastChannel the sign-out posts to. It reaches tabs that are running, not tabs that are reloading, so it covers the live path only. A durable fix for a store that won't take writes may not exist. Whether a new channel is worth that partial coverage is a design call.
Review-Deferral: 22601929e2fc387e severity=nit category=security
Review-Deferral: 6f2a8235a818a050 severity=nit category=reliability
Review-Deferral: a09380796d04a58f severity=nit category=data-integrity
Raised by the cross-model review of #1956 (#1946).
🤖 Generated by Anthropic Claude Code (Claude Opus 5.5); posted via @dawsontoth.
- Lingua principale
- TypeScript
- Stelle
- 5
- Fork
- 4
- Merge medio
- 1g 19h
- PR unite (30g)
- 144
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HarperFast/studio
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
HarperFast/studio#2070 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
HarperFast/studio#2067 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
HarperFast/studio#2053 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HarperFast/studio#2026 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
HarperFast/studio#2021 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di HarperFast/studio
Issue simili
-
e2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
redhat-developer/rhdh-plugin-export-overlays#4733 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
S-Needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
CLI Empathy needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
chromaui/chromatic-cli#1665 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
software-mansion/argent#1854 ·
I maintainer di solito rispondono entro 1 giorno
-
FAQ Spacing IssueAperta
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 65/100
nilbuild/developer-roadmap#10557 ·
I maintainer di solito rispondono entro 1 giorno