Closed
Bug 742468
Opened 12 years ago
Closed 12 years ago
Non-existing sessionStorage object is interpreted as an object.
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 532062
People
(Reporter: mail, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.1 Safari/536.5 Steps to reproduce: In the console I typed: sessionStorage.something I did this in FF 8 on Windows and Mac Actual results: It returned: "object" Expected results: It should have said: undefined
Reporter | ||
Comment 1•12 years ago
|
||
Sorry for the double headers; this was my first bug report.
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Chris Abrams from comment #0) > User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.5 > (KHTML, like Gecko) Chrome/19.0.1084.1 Safari/536.5 > > Steps to reproduce: > > In the console I typed: > > typeof sessionStorage.something > > I did this in FF 8 on Windows and Mac > > > Actual results: > > It returned: > > "object" > > > Expected results: > > It should have said: > > undefined
Reporter | ||
Comment 3•12 years ago
|
||
Guys, really sorry for the confusion (but Bugzillas UI is very confusing): I typed: typeof sessionStorage.something and got: "object" but I should have gotten: undefined
Comment 4•12 years ago
|
||
Thanks for taking time to report this (and for getting through the bugzilla's UI)! Firefox 8 is very old though. The current supported release is Firefox 11, and when reporting bugs we usually request to test with the latest development build (http://nightly.mozilla.org/) as well, since that's where the development happens. I know it used to return null in recent versions, which was fixed in bug 532062 just a few days ago and the fix will likely be available in Firefox 14. (Note that as of today, you have to test using |window.sessionStorage.something| due to bug 726949.) You could re-test on a nightly if you'd like to verify this is indeed fixed for you, and feel free to file a new bug if you encounter a different problem.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•