mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
![edburns%acm.org](/assets/img/avatar_default.png)
a=brendan bug=49525 This simple fix just adds parameters to an existing method in an XPCOM safe way, by defining a new method at the end of the interface definition with the additional parameters. Original method: NS_IMETHOD GetURL(nsISupports* pluginInst, const char* url, const char* target = NULL, nsIPluginStreamListener* streamListener = NULL, const char* altHost = NULL, const char* referrer = NULL, PRBool forceJSEnabled = PR_FALSE) = 0; New method: NS_IMETHOD GetURLWithHeaders(nsISupports* pluginInst, const char* url, const char* target = NULL, nsIPluginStreamListener* streamListener = NULL, const char* altHost = NULL, const char* referrer = NULL, PRBool forceJSEnabled = PR_FALSE, PRUint32 getHeadersLength = 0, const char* getHeaders = NULL) = 0; I have modified nsPluginHostImpl.h to include this new method, and modified nsPluginHostImpl.cpp so that its GetURL calls GetURLWithHeaders with null values for the last two params. M modules/plugin/public/nsIPluginManager.h M modules/plugin/nglsrc/nsPluginHostImpl.cpp M modules/plugin/nglsrc/nsPluginHostImpl.h
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Languages
JavaScript
32.3%
C++
25.5%
HTML
21%
C
10.8%
Python
2.8%
Other
7.1%