| testRunner.waitUntilDone(); |
| testRunner.setCanOpenWindows(); |
| testRunner.setCloseRemainingWindowsWhenComplete(true); |
| window.onload = function() |
| frame = document.body.appendChild(document.createElement("iframe")); |
| frame.src = "about:blank"; |
| frame.onload = function() { |
| wnd = frame.contentWindow.open(); |
| frame.src = "http://localhost:8080/security/cookies/resources/innocent-victim-with-cookies.html"; |
| window.onmessage = function(e) { |
| wnd.location = "javascript:('bar')"; |
| setTimeout(finishTest, 0); |
| document.body.textContent = wnd.document.cookie.indexOf(key) != -1 ? "FAILURE" : "SUCCESS"; |