blob: ee7b2ee4ee5e7748c225d424d6c4de86f6393d02 [file] [log] [blame]
<script>
// Capture window.window and window.parent: once this context is navigated, these properties
// always return null.
var w = window;
var p = parent;
parent.accessFrame = function()
{
function normalizeURL(url)
{
return url.substring(url.lastIndexOf("LayoutTests"));
}
try {
p.log("document.URL: " + normalizeURL(document.URL));
p.log("window.document.URL: " + normalizeURL(w.document.URL));
p.log("name: " + name);
p.log("window.name: " + w.name);
} catch (e) {
p.log("An exception was thrown: " + e.message);
}
}
window.location = "notify-parent-done.html";
</script>