Index: sky/engine/core/html/HTMLIFrameElement.cpp |
diff --git a/sky/engine/core/html/HTMLIFrameElement.cpp b/sky/engine/core/html/HTMLIFrameElement.cpp |
index 52da8ca7114194dddcbdeda3ddbe5548efe13d51..4717866ae70fdb1b2ee22b7751becd90631e8a11 100644 |
--- a/sky/engine/core/html/HTMLIFrameElement.cpp |
+++ b/sky/engine/core/html/HTMLIFrameElement.cpp |
@@ -66,9 +66,12 @@ void HTMLIFrameElement::createView() |
return; |
KURL url = document().completeURL(urlString); |
- m_contentView = parentFrame->loaderClient()->createChildFrame(url); |
- if (m_contentView) |
- m_contentView->AddObserver(this); |
+ m_contentView = parentFrame->loaderClient()->createChildFrame(); |
+ if (!m_contentView) |
+ return; |
+ |
+ m_contentView->Embed(mojo::String::From(url.string().utf8().data())); |
+ m_contentView->AddObserver(this); |
} |
} |