Check for null BSTR that can be passed to the UIDelegate methods
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 03:47:16 +0000 (03:47 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 03:47:16 +0000 (03:47 +0000)
commitcf2c65f469e646c98db69699ec18c0bb66fa3a8a
treed082d0a8944b3734ff703a321e065bd3065e4567
parentff187a899791603a90fd749c86dba04ceb2f3934
    Check for null BSTR that can be passed to the UIDelegate methods
        from javascript null and undefined.  Fixes a failing test case on
        Windows (fast/dom/Window/alert-undefined.html)

        Reviewed by Eric Seidel.

        * DumpRenderTree/win/UIDelegate.cpp:
        (UIDelegate::runJavaScriptAlertPanelWithMessage):
        (UIDelegate::runJavaScriptConfirmPanelWithMessage):
        (UIDelegate::runJavaScriptTextInputPanelWithPrompt):
        (UIDelegate::webViewAddMessageToConsole):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/win/UIDelegate.cpp