| 1 |
<!DOCTYPE html> |
| 2 |
<!-- |
| 3 |
|
| 4 |
This file checks whether the current browser can access properties from same |
| 5 |
domain iframes. This is currently a problem on the matrix brower ie6 and xp. |
| 6 |
For some reason it can't access same domain iframes. |
| 7 |
TODO(user): Figure out why it can't. |
| 8 |
--> |
| 9 |
<html> |
| 10 |
<!-- |
| 11 |
Copyright 2011 The Closure Library Authors. All Rights Reserved. |
| 12 |
|
| 13 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 14 |
See the COPYING file for details. |
| 15 |
--> |
| 16 |
<head> |
| 17 |
<title>The access checking iframe</title> |
| 18 |
</head> |
| 19 |
<body> |
| 20 |
<script type="text/javascript"> |
| 21 |
try { |
| 22 |
var sameDomainIframeHref = parent.frames['nonexistant'].location.href; |
| 23 |
parent.sameDomainIframeAccessComplete(true); |
| 24 |
} catch (e) { |
| 25 |
parent.sameDomainIframeAccessComplete(false); |
| 26 |
} |
| 27 |
</script> |
| 28 |
</body> |
| 29 |
</html> |