add: if (targetWindow.document.getElementById('accessMe')) { targetWindow.document.getElementById('accessMe').innerHTML = failMessage; log(failMessage); testDone = true; window.stop(); if (window.layoutTestController) layoutTestController.notifyDone(); return; }  
context: function cannotAccessFrame(iframeURL, iframeId, passMessage, failMessage) {    if (window.layoutTestController) {        layoutTestController.dumpAsText();        layoutTestController.dumpChildFramesAsText();        layoutTestController.waitUntilDone();    }    var targetWindow = frames[0];    if (!targetWindow.document.body)        log("FAIL: targetWindow started with no document, we won't know if the test passed or failed.");    var iframe = document.getElementById(iframeId);    iframe.src = iframeURL;    var testDone = false;    setTimeout(test, 1);    setTimeout(function() {        if (!testDone) {            if (targetWindow.document.getElementById('accessMe'))                targetWindow.document.getElementById('accessMe').innerHTML = passMessage;            log(failMessage);            window.stop();            if (window.layoutTestController)                layoutTestController.notifyDone();        }    }, 2000);    function test() {        try {            if (targetWindow.document.body) {                setTimeout(test, 1);                return;            }        } catch (e) {        }        log(passMessage);        testDone = true;        window.stop();        if (window.layoutTestController)            layoutTestController.notifyDone();    }}
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/31dbd6db6e9c8a6f60b7586ceb6fd98949ccb072/cross-frame-access.js/buggy/LayoutTests/http/tests/security/resources/cross-frame-access.js