Changeset 171257 in webkit


Ignore:
Timestamp:
Jul 18, 2014 6:30:35 PM (10 years ago)
Author:
oliver@apple.com
Message:

We don't provide an extension to the temp file used for uploads
https://bugs.webkit.org/show_bug.cgi?id=135079

Reviewed by Sam Weinig.

Make sure didChooseFilesForOpenPanelWithDisplayStringAndIcon vends
extensions for the files passed to the content process.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didChooseFilesForOpenPanelWithDisplayStringAndIcon):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r171256 r171257  
     12014-07-18  Oliver Hunt  <oliver@apple.com>
     2
     3        We don't provide an extension to the temp file used for uploads
     4        https://bugs.webkit.org/show_bug.cgi?id=135079
     5
     6        Reviewed by Sam Weinig.
     7
     8        Make sure didChooseFilesForOpenPanelWithDisplayStringAndIcon vends
     9        extensions for the files passed to the content process.
     10
     11        * UIProcess/WebPageProxy.cpp:
     12        (WebKit::WebPageProxy::didChooseFilesForOpenPanelWithDisplayStringAndIcon):
     13
    1142014-07-18  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r171252 r171257  
    37763776        return;
    37773777
     3778#if ENABLE(SANDBOX_EXTENSIONS)
     3779    // FIXME: The sandbox extensions should be sent with the DidChooseFilesForOpenPanel message. This
     3780    // is gated on a way of passing SandboxExtension::Handles in a Vector.
     3781    for (size_t i = 0; i < fileURLs.size(); ++i) {
     3782        SandboxExtension::Handle sandboxExtensionHandle;
     3783        SandboxExtension::createHandle(fileURLs[i], SandboxExtension::ReadOnly, sandboxExtensionHandle);
     3784        m_process->send(Messages::WebPage::ExtendSandboxForFileFromOpenPanel(sandboxExtensionHandle), m_pageID);
     3785    }
     3786#endif
     3787
    37783788    m_process->send(Messages::WebPage::DidChooseFilesForOpenPanelWithDisplayStringAndIcon(fileURLs, displayString, iconData ? iconData->dataReference() : IPC::DataReference()), m_pageID);
    37793789
Note: See TracChangeset for help on using the changeset viewer.