Bug 1316130 - remove items from storage when we are finished with them. r=baku
authorJoel Maher <jmaher@mozilla.com>
Tue, 08 Nov 2016 16:36:46 -0500
changeset 352024 8ce219611df17502318a030a7d512a019df8c220
parent 352023 496f18cd01fe699632200eb17b703da8491ded8e
child 352025 6f0ab55c4b46692e1888872a299ed764823fbf6e
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1316130
milestone52.0a1
Bug 1316130 - remove items from storage when we are finished with them. r=baku MozReview-Commit-ID: LviUGfMwbSV
dom/base/test/test_bug1043106.html
--- a/dom/base/test/test_bug1043106.html
+++ b/dom/base/test/test_bug1043106.html
@@ -13,16 +13,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1043106">Mozilla Bug 1043106</a>
   <iframe id="iframe"></iframe>
   <script type="application/javascript">
 
 var storage;
 
 window.addEventListener("storage", function (event) {
   ok(event.storageArea, storage, "The storageArea is correct");
+  storage.removeItem("a");
   runTests();
 }, false);
 
 var tests = [ { key: 'localStorage', storage: localStorage },
               { key: 'sessionStorage', storage: sessionStorage } ];
 function runTests() {
   if (!tests.length) {
     SimpleTest.finish();