| Index: Source/core/html/HTMLFrameElementBase.cpp
|
| diff --git a/Source/core/html/HTMLFrameElementBase.cpp b/Source/core/html/HTMLFrameElementBase.cpp
|
| index 23eb76f2cac6defe6ab24832b007a9e29afbc4eb..308ec43cdc97cff855dd3cc89b034f8160c60f33 100644
|
| --- a/Source/core/html/HTMLFrameElementBase.cpp
|
| +++ b/Source/core/html/HTMLFrameElementBase.cpp
|
| @@ -94,7 +94,7 @@ void HTMLFrameElementBase::openURL(bool lockBackForwardList)
|
| return;
|
| if (!contentFrame() || scriptURL.isEmpty())
|
| return;
|
| - contentFrame()->script().executeScriptIfJavaScriptURL(scriptURL);
|
| + toLocalFrame(contentFrame())->script().executeScriptIfJavaScriptURL(scriptURL);
|
| }
|
|
|
| void HTMLFrameElementBase::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| @@ -164,8 +164,10 @@ void HTMLFrameElementBase::attach(const AttachContext& context)
|
| HTMLFrameOwnerElement::attach(context);
|
|
|
| if (RenderPart* part = renderPart()) {
|
| - if (LocalFrame* frame = contentFrame())
|
| - part->setWidget(frame->view());
|
| + if (Frame* frame = contentFrame()) {
|
| + if (frame->isLocalFrame())
|
| + part->setWidget(toLocalFrame(frame)->view());
|
| + }
|
| }
|
| }
|
|
|
|
|