Skip to content

Initialize the type of session and local Storage objects - #13130

Open
JinDX wants to merge 1 commit into
whatwg:mainfrom
JinDX:fix/storage-type-initialization
Open

JinDX wants to merge 1 commit into
whatwg:mainfrom
JinDX:fix/storage-type-initialization

Conversation

@JinDX

@JinDX JinDX commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Set the type of Storage objects created by the sessionStorage and localStorage getters to "session" and "local", respectively.

Storage defines a type field without a default value. The broadcast algorithm reads that field to select recipients and apply the session-storage traversable restriction.

Suggested regression coverage: storage event delivery for local storage and for session storage in matching and different traversables.

Spec: https://html.spec.whatwg.org/multipage/webstorage.html#the-sessionstorage-attribute

  • At least two implementers are interested (and none opposed):
    • …
    • …
  • Tests are written and can be reviewed and commented upon at:
    • …
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/webstorage.html ( diff )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant