Fix fast/dom/Window/alert-undefined.html
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2007 07:21:15 +0000 (07:21 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2007 07:21:15 +0000 (07:21 +0000)
        Reviewed by Sam.

        * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/WaitUntilDoneDelegate.cpp:
        (WaitUntilDoneDelegate::runJavaScriptAlertPanelWithMessage): Don't let
        Windows translate a null BSTR into "(null)"

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

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/WaitUntilDoneDelegate.cpp

index 024ee0e23dfe5ab55f51646e3884dcabf96cea0d..30b088a4f02a9a1122adac88140fdeb471a8993c 100644 (file)
@@ -1,3 +1,13 @@
+2007-08-02  Adam Roben  <aroben@apple.com>
+
+        Fix fast/dom/Window/alert-undefined.html
+
+        Reviewed by Sam.
+
+        * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/WaitUntilDoneDelegate.cpp:
+        (WaitUntilDoneDelegate::runJavaScriptAlertPanelWithMessage): Don't let
+        Windows translate a null BSTR into "(null)"
+
 2007-08-02  Kevin McCullough  <kmccullough@apple.com>
 
         Reviewed by Tim. 
index 3d50f3777943e67891efe8ca0560f984c6e3d0b2..cf00ed4f4c32093c5a4f24083df4e40ea6a3e7d3 100644 (file)
@@ -202,7 +202,7 @@ HRESULT STDMETHODCALLTYPE WaitUntilDoneDelegate::runJavaScriptAlertPanelWithMess
         /* [in] */ IWebView* /*sender*/,
         /* [in] */ BSTR message)
 {
-    wprintf(L"ALERT: %s\n", message);
+    wprintf(L"ALERT: %s\n", message ? message : L"");
 
     return S_OK;
 }