localStorage in win8.1 IE11 does not synchronize

前端 未结 4 1227
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 05:41

We have two pages \"/read\" and \"/write\". Page \"/write\" each second updates localStorage with current time:

setInterval(function(){
    var time = (new          


        
4条回答
  •  抹茶落季
    2020-12-30 06:12

    Not so much an Answer, but further investigation. Using the below page, this problem can be easily tested by hosting on a web server and opening it in different tabs. Then clicking the Button in one of the tabs.

    
    
        LocalStorage Test
    
    
    
    
    
    
    
    

    Results in Chrome/Firefox/Safari regardless of OS are predictable the same. They show that localStorage is shared across the pages from the same Origin.

    On IE11 on windows 7, also gives the same results. enter image description here

    Acording to what I have read, this appears to be per the spec, point 3 here https://html.spec.whatwg.org/multipage/webstorage.html#the-localstorage-attribute

    But...

    • IE 11 on windows 8.1, will demonstrate separate localStorage areas for the same origin. enter image description here

    • Microsoft Edge on Windows 10 (10162), has the same problem. enter image description here The fact that IE11 shows 'correct' behaviour on windows 7, suggests the OS is where the problem lies?

提交回复
热议问题