/src/main/java/org/htmlunit/html/BaseFrameElement.java
if ( window != window.getParentWindow( ) ) {
if ( window == window.getParentWindow ( ) ) {
final URL encUrl = UrlUtils.encodeUrl(url, window.getWebClient().getBrowserVersion().hasFeature(URL_MINIMAL_QUERY_ENCODING), charset); if (UrlUtils.sameFile(encUrl, window.getEnclosedPage().getUrl())) { return true; } <extra_id_0> window = null; } else { window = window.getParentWindow(); } }