getLocalStorage

abstract suspend fun getLocalStorage(): Map<String, String>

Gets the local storage of the page currently loaded in this tab.

Values are returned exactly as the browser stores them, that is as strings. Anything that was serialized before being stored has to be deserialized by the caller.

Return

The local storage entries, keyed by their storage key. Empty if the origin has none.

Throws

IllegalStateException

if the tab has no target, so no origin to read from.