Fix <rdar://5569268> Crash when opening any FTP site in second tab/window
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 23:45:58 +0000 (23:45 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 23:45:58 +0000 (23:45 +0000)
commit02603138c906275e8872d7e5b678ac9eddb67708
tree5eb36c751996363a168fddb779fb0cee5f168ed3
parentc3d1095295aedc43c3fc48351850fc2a726619f6
Fix <rdar://5569268> Crash when opening any FTP site in second tab/window

WebCore:

        Fix <rdar://5569268> Crash when opening any FTP site in second tab/window

        Reviewed by Sam.

        No test possible.

        * platform/win/SharedBufferWin.cpp:
        (WebCore::SharedBuffer::createWithContentsOfFile): Bail if we get an
        empty path, because _wfopen_s will crash if we pass it a null pointer.

WebKit/win:

        Fix <rdar://5569268> Crash when opening any FTP site in second tab/window

        Reviewed by Sam.

        * WebView.cpp:
        (WebView::initWithFrame): Set the ftpDirectoryTemplatePath for every
        Page, not just the first one.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/win/SharedBufferWin.cpp
WebKit/win/ChangeLog
WebKit/win/WebView.cpp