Closed Bug 572474 Opened 14 years ago Closed 14 years ago

sessionStorage problem

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 7
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 538142

People

(Reporter: bugzilla33, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

sessionStorage.getItem should return null for not existing keys but it returns empty string

Reproducible: Always

Steps to Reproduce:

1. open testcase from attachment
2 [review]. follow instruction

Actual Results:  

sessionStorage.getItem returns empty string for not existing keys


Expected Results:  

sessionStorage.getItem returns null for not existing keys
Attached file testcase
Probably only Windows platform.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
This is note duplicate of bug 538142.

Read caverfully docs: http://www.w3.org/TR/webstorage/#the-storage-interface

"If the given key does not exist in the list associated with the object then this method must return null."

Actual "Clear Recent History..." change sessionStorage values to empty string. Why? It should remove all keys/values pairs.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Summary: sessionStorage should alert null for empty keys → "Clear Recent History..." change sessionStorage values to empty strings
Summary: "Clear Recent History..." change sessionStorage values to empty strings → "Clear Recent History..." change sessionStorage values to empty strings, should remove all keys with values
Summary: "Clear Recent History..." change sessionStorage values to empty strings, should remove all keys with values → "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values
"Clear Recent History..." only change sessionStorage values to empty strings. Should more - remove all keys with values.
Now "more" is after "Clear Recent History..." + browser restart.
Summary: "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values → "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without browser restart)
Summary: "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without browser restart) → "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without the need to browser reboot as it does currently)
Summary: "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without the need to browser reboot as it does currently) → "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without the need to browser restart as it does currently)
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
Summary: "Clear Recent History..." only change sessionStorage values to empty strings, should more - remove all keys with values (without the need to browser restart as it does currently) → sessionStorage problem
Resolution: INVALID → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: