mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
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:
commit
9754c4c255
2 changed files with 16 additions and 2 deletions
14
tests/content/test_storage.html
Normal file
14
tests/content/test_storage.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue