blob: 3b9b234f2fffdedafae1b5c67a310979dfe80d20 [file] [log] [blame]
<script>
const opener = window.opener; // Save opener as the window will be detached when accessFrame() is called.
opener.accessFrame = function()
{
function normalizeURL(url)
{
return url.substring(url.lastIndexOf("LayoutTests"));
}
try {
opener.log("document.URL: " + normalizeURL(document.URL));
opener.log("window.document.URL: " + normalizeURL(window.document.URL));
opener.log("name: " + name);
opener.log("window.name: " + window.name);
} catch (e) {
opener.log("An exception was thrown: " + e.message);
}
}
window.location = "notify-opener-done.html";
</script>