summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-no-file-access.html
blob: 2ef75dd72c84a09940e10333d416834fc7747b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    testRunner.setAllowUniversalAccessFromFileURLs(false);
    testRunner.setAllowFileAccessFromFileURLs(false);
}
</script>
</head>
<body>
<iframe src="resources/xmlhttprequest-no-file-access-real.html"></iframe>
<div id="results"></div>
The child iframe cannot paste its textual results into this iframe because it
is considered a different domain - that's the point of this test!
Therefore, success is denoted by the child iframe calling notifyDone.
The test will hang if something goes amiss with the access control checks.
</body>
</html>