Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session Storage not getting carried forward to new tab in Chrome 89+

I just stumbled upon a problem where Chrome suddenly stopped propagating session storage information when application opened a new tab This was working fine before then stopped after Chrome 89 update.

Has anyone encountered this issue yet?

Thanks

like image 836
Arnaud Avatar asked Mar 04 '21 10:03

Arnaud


People also ask

Does session storage work across tabs?

Right, sessionStorage is not shared across tabs. The way I solved it is by using localStorage events. When a user opens a new tab, we first ask any other tab that is opened if he already have the sessionStorage for us.

How do I access session storage in Chrome?

# View sessionStorage keys and valuesClick the Application tab to open the Application panel. Expand the Session Storage menu. Click a domain to view its key-value pairs. Click a row of the table to view the value in the viewer below the table.

How do I make Chrome jump to a new tab?

Open a new tab Or, use a keyboard shortcut: Windows & Linux: Ctrl + t. Mac: ⌘ + t.

Does sessionStorage clear on tab close?

The sessionStorage object stores data for only one session. (The data is deleted when the browser is closed).


1 Answers

Found the solution in the meantime.

Chrome started changing the behaviour of tabs with target "_blank" recently.

the HTML standard changed to specify that anchors that target _blank should behave as if |rel="noopener"| is set. https://www.chromestatus.com/feature/6140064063029248

The solution is to add rel="opener" if you want the session to be carried over to the new tab.

like image 145
Arnaud Avatar answered Sep 20 '22 23:09

Arnaud