StorageEvent.newValue is empty string instead of null after Storage.removeItem

Confirmed Issue #10225054 • Assigned to Erik A.


Nathan P.
Dec 15, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

On other browsers and according to the specification, StorageEvent.newValue should be null when created as a result of calling Storage.removeItem() in another window:

its newValue attribute initialized to the new value of the key in question, or null if the key was removed.

When observing events fired by another tab in Developer Tools to debug why my script was behaving differently on Edge from other browsers, I noticed that after calling removeItem() in another tab, Edge sets the newValue to "" instead of null. I also noticed that a subsequent setItem() call set oldValue to "" instead of null.

I’m using Edge-39.14986.1000.0/EdgeHTML-15.14986

The screenshot shows the events fired by another tab calling localStorage.removeItem('smtest-ready'); localStorage.setItem('smtest-ready', '0');


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Venkat K.”

    Changed Assigned To from “Venkat K.” to “Ali A.”

    Changed Assigned To from “Ali A.” to “Shawn P.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Shawn P.” to “Cameron F.”

    Changed Assigned To from “Cameron F.” to “Samuel D.”

    Changed Assigned To from “Samuel D.” to “Erik A.”

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

Sign in