[Webkit-unassigned] [Bug 69138] New: Local storage getItem() for an empty string returned UNDEFINED value.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 30 01:18:14 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69138
Summary: Local storage getItem() for an empty string returned
UNDEFINED value.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: naveenbobbili at motorola.com
1. Use the following code:
<html>
<head>
<script>
console.log(localStorage['test1'] + "|"+localStorage['test2']+"|");
localStorage['test1'] = "hi";
localStorage['test2'] = "";
</script>
</head>
<body>
</body>
</html>
2. Load webkit gtk browser and on first visit it reads "undefined|undefined" in the console. Reload and you get "hi||".
3. Restart browser and it prints "hi|undefined".
What is the expected result?
I would expect it to continue to log "hi||" after browser restart.
Analysis:
This issue has occurred as a result of fix provided to https://bugs.webkit.org/show_bug.cgi?id=58762
Blob datatype return NULL even for empty strings. So this needs to be specially handled in StorageAreaSync code.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list