Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Handle NP_ASFILE and NP_ASFILEONLY transfer modes
https://bugs.webkit.org/show_bug.cgi?id=42587 Reviewed by Darin Adler, Adam Roben, Dan Bernstein and Sam Weinig. WebCore: * WebCore.exp.in: Export functions from FileSystem.h * platform/mac/FileSystemMac.mm: (WebCore::openTemporaryFile): Try to create a temporary file using mkstemp. WebKit2: * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: (WebKit::NetscapePlugin::NPP_StreamAsFile): * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add NPP_ wrapper. * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp: (WebKit::NetscapePluginStream::NetscapePluginStream): Initialize m_fileHandle. (WebKit::isSupportedTransferMode): NP_ASFILE and NP_ASFILEONLY is now supported. (WebKit::NetscapePluginStream::deliverData): Call deliverDataToFile if necessary. (WebKit::NetscapePluginStream::deliverDataToFile): Create a temporary file and write the data into it. (WebKit::NetscapePluginStream::stop): If the transfer mode is either NP_ASFILE or NP_ASFILEONLY, make sure to call NPP_StreamAsFile and close the file and delete it. * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::cancelStreamLoad): Keep a reference to the Stream since cancelling it will remove it from the map. Canonical link: https://commits.webkit.org/54542@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
156 additions
and 11 deletions.
- +14 −0 WebCore/ChangeLog
- +6 −2 WebCore/WebCore.exp.in
- +1 −1 WebCore/WebCore.xcodeproj/project.pbxproj
- +25 −0 WebCore/platform/mac/FileSystemMac.mm
- +33 −0 WebKit2/ChangeLog
- +5 −0 WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
- +2 −0 WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.h
- +59 −5 WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
- +5 −0 WebKit2/WebProcess/Plugins/Netscape/NetscapePluginStream.h
- +6 −3 WebKit2/WebProcess/Plugins/PluginView.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters