Index: Source/core/html/HTMLFrameElementBase.cpp |
diff --git a/Source/core/html/HTMLFrameElementBase.cpp b/Source/core/html/HTMLFrameElementBase.cpp |
index 87abc68c5568c666593a5d08c5e14ac1973c4da4..ee26148c26eb3534ef12b49dd3fc0418df6cc35a 100644 |
--- a/Source/core/html/HTMLFrameElementBase.cpp |
+++ b/Source/core/html/HTMLFrameElementBase.cpp |
@@ -31,6 +31,7 @@ |
#include "core/dom/Document.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/html/HTMLFrameJavaScriptURLOpener.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
#include "core/loader/FrameLoader.h" |
#include "core/page/FocusController.h" |
@@ -151,7 +152,12 @@ void HTMLFrameElementBase::didNotifySubtreeInsertionsToDocument() |
if (!SubframeLoadingDisabler::canLoadFrame(*this)) |
return; |
- setNameAndOpenURL(); |
+ if (!protocolIsJavaScript(m_URL)) { |
+ setNameAndOpenURL(); |
+ return; |
+ } |
+ |
+ HTMLFrameJavaScriptURLOpener::instance().request(this); |
} |
void HTMLFrameElementBase::attach(const AttachContext& context) |