IE 11 - Local Storage - Synchronization issues

Confirmed Issue #110656 • Assigned to Shawn P.

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 10 people

Sign in to watch or report this issue.

Steps to reproduce

URL =

URL:

Repro Steps:

You might have to repeat the following test a number of times to reproduce the issue (it is non consistent):

  1. Open IE 11 window on domain A with an iframe to domain C
  2. Open IE 11 window on domain B with an iframe to domain C
  3. In the first window (domain A) open the console and type:
    cd(frames[0])
    localStorage.setItem('key1’, ‘value1’);
    localStorage.getItem(‘key1’);
  1. You should see in the console: value1
  1. In the second window (domain B) open the console and type:
    cd(frames[0])
    localStorage.getItem(‘key1’);
  1. You should see in the console: value1 - if not, issue was reproduced

Expected Results:

Data stored in one window iframe local storage will be avialable in it’s up to date state on other window iframe.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Shawn P.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Assigned To to “Shawn P.”

      Changed Status from “Won’t fix”

      Changed Status to “Confirmed”

    • Hi.

      Regarding this issue, I’ve distinguished two different situations:

      • (In all versions of IE11) Having: 1) Domain A with iframe in domain C. 2) Just domain C (no iframe).

      C in 1 and C in 2 might end up with different local storage if A and C are in different zones (e.g. Internet and Trusted Sites) and those zones have different “Protected Mode” settings. In IE11 C in 1 will be assigned to the same zone as A (parent document). This means C in 1 and C in 2 will be in different zones, and when the “Protected Mode” is on, the local storage is saved in the user’s low integrity level cache (…USERNAME\AppData\LocalLow) while, when “Protected Mode” is off, the local storage is saved in the regular cache (…USERNAME\AppData\Local).

      • (Since IE11 KB3139929) Having: 1) Domain A with iframe in domain C. 2) Just domain C (no iframe).

      Even if A and C are in the same zone (e.g. Trusted Sites) two different versions of the local storage’s xml are created in cache (one for C in 1 and one for C in 2), e.g. “…\AppData\Local\Microsoft\Internet Explorer\DOMStore\ZLF7W5AW\domainc[1].xml” for C in 1 and “…\AppData\Local\Microsoft\Internet Explorer\DOMStore\A1ZT3XDX\domainc[1].xml” for C in 2.

      Regards.

    • In fact you don’t have to use page with frames. Just open the same page in two tabs, then in the first tab do localStorage.setItem('test’,123) and in the second tab do localStorage.getItem(‘test’) - it returns null until you refresh the second tab.
      The same problem exists in Edge on Windows 10.

    • Here’s a quick way of testing the problem-
      http://stackoverflow.com/a/31318361/3696510

    • Hi,
      we seem to be also affected by this issue. Our application uses the local storage to transfer information from tab to tab (no frames involved) and it does not work reliably in IE11 - the tabs get out of sync suddenly, seeing different content of the local storage.

      Unfortunately it is hard to investigate what is going on in the browser, as it crashes immediately almost anytime we try to open the development tools (F12).

      Is there any plan for this issue to be fixed?
      Thank you.

    You need to sign in to your Microsoft account to add a comment.

    Sign in