| Index: chrome/test/data/sync_xmlhttprequest_disallowed.html
|
| ===================================================================
|
| --- chrome/test/data/sync_xmlhttprequest_disallowed.html (revision 0)
|
| +++ chrome/test/data/sync_xmlhttprequest_disallowed.html (revision 0)
|
| @@ -0,0 +1,29 @@
|
| +<html>
|
| +<head>
|
| +<script>
|
| +var success = false;
|
| +
|
| +function OnLoad() {
|
| + try {
|
| + var request = new XMLHttpRequest();
|
| + request.open("GET", "file:///c:/foo.txt", false);
|
| + request.send(null);
|
| + } catch (e) {
|
| + success = true;
|
| + }
|
| + document.getElementById("console").appendChild(
|
| + document.createTextNode(success ? "SUCCESS" : "FAILURE"));
|
| +}
|
| +
|
| +function DidSucceed() {
|
| + return success;
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="OnLoad();">
|
| +This page sends a synchronous XMLHttpRequest to fetch a local file, which
|
| +should not be allowed.
|
| +<div id="console"></div>
|
| +</body>
|
| +</html>
|
|
|
| Property changes on: chrome\test\data\sync_xmlhttprequest_disallowed.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|