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:
- Wrap the storage change handler in a setTimeout.
- 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”
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.
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.