Reviewed by Adele.
[WebKit-https.git] / WebKit / win / DOMHTMLClasses.cpp
index 063023feaa98c311eac35b61b375733677be7ce2..bfe85282c4dd4a86bcdb1c9610aef0d0e32db468 100644 (file)
@@ -208,10 +208,13 @@ HRESULT STDMETHODCALLTYPE DOMHTMLDocument::domain(
 }
     
 HRESULT STDMETHODCALLTYPE DOMHTMLDocument::URL( 
-        /* [retval][out] */ BSTR* /*result*/)
+        /* [retval][out] */ BSTR* result)
 {
-    ASSERT_NOT_REACHED();
-    return E_NOTIMPL;
+    if (!result)
+        return E_POINTER;
+
+    *result = BString(static_cast<HTMLDocument*>(m_document)->URL()).release();
+    return S_OK;
 }
     
 HRESULT STDMETHODCALLTYPE DOMHTMLDocument::body(