v159 · webtransport · persistence edge

Persisted error log

IndexedDB stores values using the same structured serialization as postMessage. Once WebTransportError is serializable, a diagnostics log can keep the error objects themselves and read them back after a reload, still answering instanceof WebTransportError. The serialized form carries message, source and streamErrorCode — and Chromium deliberately writes an empty stack field, so stack does not survive.

Writing a WebTransportError into IndexedDB needs Chrome 159 with the WebTransportErrorSerialization runtime switch on (the default; force it with --enable-blink-features=WebTransportErrorSerialization, or chrome://flags/#enable-experimental-web-platform-features in a developer-trial build). Chromium keeps reading stored errors permanently, even with the writer switched off. On a build that cannot write them, put() throws DataCloneError and this page stores a plain record instead, marked as a fallback in the table. The log lives only in this browser (database wte-error-log). “Log a real session failure” targets https://127.0.0.1:44443/never, so Chrome logs an expected “Failed to establish a connection” console error.

Write errors to IndexedDB

Opening the database …

Read the log back

Reload this page — or press the button — and every row is read fresh from IndexedDB, so the values below went through serialization and deserialization.

Stored entries, as read back
#stored asmessagesourcestreamErrorCodestack after read
Not read yet.

Not read yet.

see also