Reviewed by John.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Dec 2003 20:18:46 +0000 (20:18 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Dec 2003 20:18:46 +0000 (20:18 +0000)
<rdar://problem/3507856>: XMLHttpRequest xhtml test displays but doesn't load

        * khtml/ecma/xmlhttprequest.cpp:
        (KJS::XMLHttpRequestProtoFunc::tryCall): complete the URL using the document,
not the htmlDocument.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@5782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/xmlhttprequest.cpp

index aa2eb87..8057b9f 100644 (file)
@@ -1,3 +1,13 @@
+2003-12-11  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by John.
+
+       <rdar://problem/3507856>: XMLHttpRequest xhtml test displays but doesn't load
+
+        * khtml/ecma/xmlhttprequest.cpp:
+        (KJS::XMLHttpRequestProtoFunc::tryCall): complete the URL using the document,
+       not the htmlDocument.
+
 2003-12-12  Richard Williamson   <rjw@apple.com>
 
        Replace call to global functions with static member functions.
index da510bd..ceadfcc 100644 (file)
@@ -583,7 +583,7 @@ Value XMLHttpRequestProtoFunc::tryCall(ExecState *exec, Object &thisObj, const L
       }
     
       QString method = args[0].toString(exec).qstring();
-      KURL url = KURL(Window::retrieveActive(exec)->part()->htmlDocument().completeURL(args[1].toString(exec).qstring()).string());
+      KURL url = KURL(Window::retrieveActive(exec)->part()->document().completeURL(args[1].toString(exec).qstring()).string());
 
       bool async = true;
       if (args.size() >= 3) {