| if (window.layoutTestController) |
| layoutTestController.dumpAsText(); |
| // The 'this' value provided to this method, and provided by this method to 'bar', should |
| // both be the containing window object. |
| function foo(childThis) { |
| function bar(childThis, parentThis) { |
| if (childThis != frames[0]) |
| if (parentThis != window) |
| document.getElementById("output").innerText = str; |
| <div>This test checks whether cross-site calling uses the proper |
| object as the global "this" value. The text below should say |
| <iframe src="resources/cross-site-this-helper.html"></iframe> |