Changeset 223798 in webkit


Ignore:
Timestamp:
Oct 20, 2017 4:12:10 PM (7 years ago)
Author:
achristensen@apple.com
Message:

Fix download tests on El Capitan after r223730
https://bugs.webkit.org/show_bug.cgi?id=178547

  • UIProcess/Downloads/DownloadProxy.cpp:

(WebKit::DownloadProxy::decideDestinationWithSuggestedFilename):
Revert to original behavior. This uses suggestedFilename, which may have come from places like
the download attribute, instead of always using the filename from CFNetwork.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r223791 r223798  
     12017-10-20  Alex Christensen  <achristensen@webkit.org>
     2
     3        Fix download tests on El Capitan after r223730
     4        https://bugs.webkit.org/show_bug.cgi?id=178547
     5
     6        * UIProcess/Downloads/DownloadProxy.cpp:
     7        (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename):
     8        Revert to original behavior.  This uses suggestedFilename, which may have come from places like
     9        the download attribute, instead of always using the filename from CFNetwork.
     10
    1112017-10-20  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebKit/UIProcess/Downloads/DownloadProxy.cpp

    r223730 r223798  
    206206
    207207    String suggestedFilename = MIMETypeRegistry::appendFileExtensionIfNecessary(m_suggestedFilename.isEmpty() ? filename : m_suggestedFilename, mimeType);
    208     m_processPool->downloadClient().decideDestinationWithSuggestedFilename(*m_processPool, *this, filename, [reply = WTFMove(reply)] (AllowOverwrite allowOverwrite, String destination) {
     208    m_processPool->downloadClient().decideDestinationWithSuggestedFilename(*m_processPool, *this, suggestedFilename, [reply = WTFMove(reply)] (AllowOverwrite allowOverwrite, String destination) {
    209209        SandboxExtension::Handle sandboxExtensionHandle;
    210210        if (!destination.isNull())
Note: See TracChangeset for help on using the changeset viewer.