/src/main/java/org/htmlunit/html/BaseFrameElement.java
if ( jsEngine == null) {
if ( isAttachedToPage ( ) ) {
loadSrcWhenAddedToPage_ = true; getEnclosedWindow().close(); } @Override public final void removeAttribute(final String attributeName) { super.removeAttribute(attributeName); <extra_id_0> loadSrcWhenAddedToPage_ = false; final String src = getSrcAttribute(); final AbstractJavaScriptEngine<?> jsEngine = getPage().getWebClient().getJavaScriptEngine(); if (jsEngine == null || !jsEngine.isScriptRunning()) { loadInnerPageIfPossible(src); }