blob: 6b0e56fd878892ce54b97eda8ff66ae053a5e867 [file] [log] [blame]
if (window.internals)
internals.settings.setContentDispositionAttachmentSandboxEnabled(true);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
}
onload = function() {
// Due to the sandbox, it's not possible to run script in the iframe or even access its contentDocument.
var element = document.getElementsByTagName("iframe")[0];
var x = element.offsetLeft + 10;
var y = element.offsetTop + 10;
if (window.testRunner) {
if (testRunner.isIOSFamily)
testRunner.runUIScript("(function() { uiController.singleTapAtPoint(" + x + ", " + y + "); })()");
else if (window.eventSender) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseUp();
}
}
}