Changeset 86799 in webkit


Ignore:
Timestamp:
May 18, 2011 3:17:13 PM (13 years ago)
Author:
brettw@chromium.org
Message:

2011-05-18 Brett Wilson <brettw@chromium.org>

Reviewed by Adam Barth.

Don't create empty file objects if no download file path is specified.
https://bugs.webkit.org/show_bug.cgi?id=60798

  • src/WebURLResponse.cpp: (WebKit::WebURLResponse::setDownloadFilePath):
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r86746 r86799  
     12011-05-18  Brett Wilson  <brettw@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Don't create empty file objects if no download file path is specified.
     6        https://bugs.webkit.org/show_bug.cgi?id=60798
     7
     8        * src/WebURLResponse.cpp:
     9        (WebKit::WebURLResponse::setDownloadFilePath):
     10
    1112011-05-17  Mikhail Naganov  <mnaganov@chromium.org>
    212
  • trunk/Source/WebKit/chromium/src/WebURLResponse.cpp

    r86164 r86799  
    374374void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath)
    375375{
    376     m_private->m_resourceResponse->setDownloadedFile(File::create(downloadFilePath));
     376    m_private->m_resourceResponse->setDownloadedFile(downloadFilePath.isEmpty() ? 0 : File::create(downloadFilePath));
    377377}
    378378
Note: See TracChangeset for help on using the changeset viewer.