Index: webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/iframe-all-window-prototype.html |
=================================================================== |
--- webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/iframe-all-window-prototype.html (revision 0) |
+++ webkit/data/layout_tests/chrome/http/tests/security/isolatedWorld/iframe-all-window-prototype.html (revision 0) |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<div id="console"></div> |
+<iframe src="about:blank"></iframe> |
+<script> |
+var wnd = frames[0]; |
+for (p in wnd) { |
+ var obj = wnd[p]; |
+ if (obj) |
+ obj.__proto__.foo = "FAIL: Visible in isolated world."; |
+} |
+ |
+if (window.layoutTestController) { |
+ layoutTestController.dumpAsText(); |
+ layoutTestController.queueScriptInIsolatedWorld( |
+ "var wnd = frames[0];\n" + |
+ "for (p in wnd) {\n" + |
+ " var obj = wnd[p];\n" + |
+ " if (obj) {\n" + |
+ " var div = document.createElement('div');\n" + |
+ " div.innerHTML = p + ': ' + obj.foo;\n" + |
+ " document.getElementById('console').appendChild(div);\n" + |
+ " }\n" + |
+ "}"); |
+} |
+</script> |
+</body> |
+</html> |