Preserve History State after Cross-Document Navigation

Aperta
#1,441 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
html, javascript
Ambito
frontend, web-dev

Direzione di ricerca

Review the HTML specification section on navigation and history APIs. Examine the provided test files a.html and b.html to understand the current cross-document navigation behavior. The goal is to align browser implementations (Blink, WebKit) with Gecko's behavior of preserving history state. Check existing web-platform-tests for navigation to see how tests are structured.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

focus-area-proposal
Description

Currently, Blink and WebKit discard the developer-supplied history entry state after a cross-document navigation, but retain the state during a same-document navigation.

This behavior is inconsistent and makes passing data to a navigation target highly complex.

The current behavior of Gecko is more consistent, as the state is always preserved after any navigation.

The ability to seamlessly pass state across documents is critical for web apps that aren't strictly single-page. Resolving this cross-browser discrepancy will significantly lower friction for modern web state handling and allow developers to drop hacky storage-based fallbacks.

Specification

https://html.spec.whatwg.org/multipage/nav-history-apis.html

web-feature

web-features: navigation

Test Links

a.html
b.html

Additional Signals

No response

Lingua principale
JavaScript
Stelle
591
Fork
39
Merge medio
3h 8m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di web-platform-tests/interop

Tutte le issue di web-platform-tests/interop

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.