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

Confirmed Issue #10225054 • Assigned to Shawn P.

Details

Author
Nathan P.
Created
Dec 15, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Found in build #
39.14986
Reports
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');

Attachments

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”

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

Sign in