| OLD | NEW |
| 1 iframe = document.createElement("IFRAME"); | 1 iframe = document.createElement("IFRAME"); |
| 2 iframe.src = "about:blank"; | 2 iframe.src = "about:blank"; |
| 3 document.body.appendChild(iframe); | 3 document.body.appendChild(iframe); |
| 4 iframe.contentWindow.document.body.textContent = "Nothing to see here."; | 4 iframe.contentWindow.document.body.textContent = "Nothing to see here."; |
| 5 | 5 |
| 6 storageEventList = new Array(); | 6 storageEventList = new Array(); |
| 7 iframe.contentWindow.onstorage = function(e) { | 7 iframe.contentWindow.onstorage = function(e) { |
| 8 window.parent.storageEventList.push(e); | 8 window.parent.storageEventList.push(e); |
| 9 }; | 9 }; |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 { | 51 { |
| 52 testCallback("sessionStorage"); | 52 testCallback("sessionStorage"); |
| 53 var hit = false; | 53 var hit = false; |
| 54 add_result_callback(function() { | 54 add_result_callback(function() { |
| 55 if (!hit) { | 55 if (!hit) { |
| 56 hit = true; | 56 hit = true; |
| 57 testCallback("localStorage"); | 57 testCallback("localStorage"); |
| 58 } | 58 } |
| 59 }); | 59 }); |
| 60 } | 60 } |
| OLD | NEW |