../../../../../../WebCore:
2008-07-28 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
Based on a patch by Dimcho Balev.
https://bugs.webkit.org/show_bug.cgi?id=18676
Plug-In API Proposal: Enable plugins to receive response body when an HTTP error occurs
* bridge/npapi.h:
Add new enum values.
* loader/NetscapePlugInStreamLoader.cpp:
(WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
When the plug-in indicates that it wants all streams to be delivered, don't cancel the stream
if an error occurs.
* loader/NetscapePlugInStreamLoader.h:
(WebCore::NetscapePlugInStreamLoaderClient::wantsAllStreams):
Add new client method.
../../../../../../WebKit/mac:
2008-07-28 Anders Carlsson <andersca@apple.com>
Reviewed by Kevin Decker.
Based on a patch by Dimcho Balev.
https://bugs.webkit.org/show_bug.cgi?id=18676
Plug-In API Proposal: Enable plugins to receive response body when an HTTP error occurs
* Plugins/WebBaseNetscapePluginStream.h:
Add NPP_GetValue pointer.
* Plugins/WebBaseNetscapePluginStream.mm:
(-[WebBaseNetscapePluginStream setPlugin:]):
Initialize NPP_GetValue.
(-[WebBaseNetscapePluginStream wantsAllStreams]):
Call NPP_GetValue.
* Plugins/WebPlugInStreamLoaderDelegate.h:
* WebCoreSupport/WebNetscapePlugInStreamLoaderClient.h:
* WebCoreSupport/WebNetscapePlugInStreamLoaderClient.mm:
(WebNetscapePlugInStreamLoaderClient::wantsAllStreams):
Implement this and call down to the stream.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35409 268f45cc-cd09-0410-ab3c-d52691b4dbfc