Sign in
webkit
/
WebKit
/
e7cca793f3088c00dd40a4e10a91d4129667688e
/
.
/
LayoutTests
/
storage
/
domstorage
/
sessionstorage
/
resources
/
clearSessionStorage.js
blob: 489ef2adfaad056059919f6e195f00f37186c2ea [
file
] [
log
] [
blame
]
function
clearSessionStorage
()
{
var
keys
=
new
Array
();
for
(
key in sessionStorage
)
keys
.
push
(
key
);
for
(
key in keys
)
sessionStorage
.
removeItem
(
keys
[
key
]);
}
if
(
window
.
sessionStorage
)
clearSessionStorage
();