Auto merge of #5576 - jagtalon:jag/slashdot-storage, r=jdm

Use `and_then` and remove `unwrap` instead of using a `map` as described in https://github.com/servo/servo/issues/5548#issuecomment-90254644.

Fixes #5548
This commit is contained in:
bors-servo 2015-04-11 18:13:16 -05:00
commit 9754c4c255
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,14 @@
<html>
<head>
<title></title>
<script src="harness.js"></script>
</head>
<body>
<script>
// Delete keys that don't exist in either localStorage
// or sessionStorage.
delete localStorage.a;
delete sessionStorage.a;
</script>
</body>
</html>