mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
757fe3cde1
a=waterson bug=51919 This fix makes it so nsIPluginManager::PostURL() works correctly in the case of a null target and non-null streamListener. The fix was to add parameters to NewPluginURLStream() for headers and post data: NS_IMETHOD - NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance, nsIPluginStreamListener *aListener); + NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance, + nsIPluginStreamListener *aListener, + void *aPostData = nsnull, PRUint32 aPostDataLen = 0, + const char *aHeadersData = nsnull, + PRUint32 aHeadersDataLen = 0); And to add a new method to correctly send the headers to the channel: + NS_IMETHOD + AddHeadersToChannel(const char *aHeadersData, PRUint32 aHeadersDataLen, + nsIChannel *aGenericChannel); Files in this fix: M modules/plugin/nglsrc/nsPluginHostImpl.cpp M modules/plugin/nglsrc/nsPluginHostImpl.h