Cross Window Local Storage Synchronization Issues

Fixed Issue #17129269


Josh P.
Apr 22, 2018
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

The basic issue is as follows:

  • Open window 1 and set storage key "A".
  • In window 1, add a storage change listener on key “A” where inside the listener function, key “B” is read.
  • Open a second window and remove key "B", then set key "A".
  • Storage change listener in window 1, reads key “B” and key “B” is out of date.

I am attaching an HTML page and a BAT file.

The BAT file launches the HTML page (you’ll need to put it on some server to be in the internet security domain).

The BAT file uses a query string when first launching the page, to let the first page know to stay open. Then, every four seconds, the BAT file launches the page again, where the page does it’s localStorage writing and closes after 400ms.

If you watch the first page, list items are added to the DOM, illustrating the issue.

There are two ways to mitigate the issue:

  1. Wrap the storage change handler in a setTimeout.
  1. Set TabProcGrowth=1

This happens in Edge and IE11. I don’t know if TabProGrowth affects Edge; I didn’t try.


Comments and activity

  • Forgot to mention, IE needs to be configured to, Open links from other programs in a new window.

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

    Changed Assigned To from “Steven K.” to “Cameron F.”

    Changed Status to “Confirmed”

    Changed Status from “Confirmed” to “Fixed”

  • Hello,

    Thank you for providing this information about the issue. We previously confirmed the problem, and have published a solution on an RS5 build of Edge. We are resolving this issue as a duplicate of an existing internal bug report. We look forward to additional feedback you may have on how we can improve Microsoft Edge.

    Best Wishes,
    The MS Edge Team

  • What is the "RS5 build"? I’m currently running 42.17134.1.0. How do I get RS5?

  • Was this fixed in IE11? I’m having trouble reproducing the bug with the most up to date IE11.

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

Sign in