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

2

13

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

Endothelioma answered 4/3, 2021 at 10:50 Comment(0)
E
12

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.

Endothelioma answered 4/3, 2021 at 10:53 Comment(2)
We tried this but didn't work for us. Is it still applicable in 2024?Kolnos
Works for me in 2024 on latest Chrome @MilinduSanojKumarageShealy
P
6

reason

Stop cloning sessionStorage for windows opened with noopener https://developer.chrome.com/blog/deps-rems-89/#stop-cloning-sessionstorage-for-windows-opened-with-noopener

solution

Add attribute rel="opener".

<a href="http://xxx" target="_blank" rel="opener">Link</a>
Palmieri answered 11/3, 2021 at 2:19 Comment(1)
We tried this but didn't work for us. Is it still applicable in 2024?Kolnos

© 2022 - 2024 — McMap. All rights reserved.