Web Storage remainingSpace method reports number of characters left instead of number of bytes

Fixed, not yet flighted Issue #919730

Details

Created
Oct 6, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

1.Go to any website that does not use localStorage and run the following in F12 tools:
•var str = "";
for (var i = 0; i < 4999996; i++) {
str += "0";
}
localStorage.test = str;
console.log(localStorage.remainingSpace);

Expected Results:

localStorage.remainingSpace should report number of bytes left instead of number of UTF-16 characters left.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “IE F.”

      Changed Status to “Fixed, not yet flighted”

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

    Sign in