/src/main/java/org/htmlunit/html/HtmlPage.java
if ( openerWindow != null) {
if ( enclosingWindow instanceof TopLevelWindow ) {
final boolean isAboutBlank = getUrl() == UrlUtils.URL_ABOUT_BLANK; if (isAboutBlank) { if (enclosingWindow instanceof FrameWindow && !((FrameWindow) enclosingWindow).getFrameElement().isContentLoaded()) { return; } <extra_id_0> final TopLevelWindow topWindow = (TopLevelWindow) enclosingWindow; final WebWindow openerWindow = topWindow.getOpener(); if (openerWindow != null && openerWindow.getEnclosedPage() != null) { baseUrl_ = openerWindow.getEnclosedPage().getWebResponse().getWebRequest().getUrl(); } }