Jacek Caban : mshtml: Added IHTMLFrameBase2::put_src implementation.

Alexandre Julliard julliard at winehq.org
Tue Dec 1 09:19:40 CST 2009


Module: wine
Branch: master
Commit: f340e637f70b24fff875834266e4c3b1c35813c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f340e637f70b24fff875834266e4c3b1c35813c8

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Nov 30 18:02:11 2009 +0100

mshtml: Added IHTMLFrameBase2::put_src implementation.

---

 dlls/mshtml/htmlframebase.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlframebase.c b/dlls/mshtml/htmlframebase.c
index 2526593..d209d7b 100644
--- a/dlls/mshtml/htmlframebase.c
+++ b/dlls/mshtml/htmlframebase.c
@@ -91,8 +91,15 @@ static HRESULT WINAPI HTMLFrameBase_Invoke(IHTMLFrameBase *iface, DISPID dispIdM
 static HRESULT WINAPI HTMLFrameBase_put_src(IHTMLFrameBase *iface, BSTR v)
 {
     HTMLFrameBase *This = HTMLFRAMEBASE_THIS(iface);
-    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+    if(!This->content_window || !This->element.node.doc || !This->element.node.doc->basedoc.window) {
+        FIXME("detached element\n");
+        return E_FAIL;
+    }
+
+    return navigate_url(This->content_window, v, This->element.node.doc->basedoc.window->url);
 }
 
 static HRESULT WINAPI HTMLFrameBase_get_src(IHTMLFrameBase *iface, BSTR *p)




More information about the wine-cvs mailing list