Hello all
I am a novice to the WPT and I would like to know if there is a way to set localstorage in the browser session that loads the page
Right now I have the script like this but it is not taking any effect
setCookie xxx.xxx.com split_tcv=200
setCookie xxx.xxx.com __vst=d991880c-d603-41cb-b4ff-d6d11c8fd8b5
exec localStorage.setItem(‘recently_viewed’, ‘1130217481,2267432533,1497137951,2441643263,1581060853,2267909440’);
navigate https://XXX.XXX.com
I also tried
setCookie xxx.xxx.com split_tcv=200
setCookie xxx.xxx.com __vst=d991880c-d603-41cb-b4ff-d6d11c8fd8b5
exec window.localStorage.setItem(‘recently_viewed’, ‘1130217481,2267432533,1497137951,2441643263,1581060853,2267909440’);
navigate https://XXX.XXX.com