https://bugs.webkit.org/show_bug.cgi?id=77297
Patch by John Yani <vanuan@gmail.com> on 2012-02-01
Reviewed by Alexey Proskuryakov.
No new tests. No change in behaviour.
* plugins/blackberry/PluginPackageBlackBerry.cpp:
(WebCore::PluginPackage::fetchInfo):
* plugins/efl/PluginPackageEfl.cpp:
(WebCore):
(WebCore::PluginPackage::fetchInfo):
* plugins/npapi.h:
* plugins/npfunctions.h:
* plugins/qt/PluginPackageQt.cpp:
(WebCore::PluginPackage::fetchInfo):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106503
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-01 John Yani <vanuan@gmail.com>
+
+ GetMIMEDescription should return const char *
+ https://bugs.webkit.org/show_bug.cgi?id=77297
+
+ Reviewed by Alexey Proskuryakov.
+
+ No new tests. No change in behaviour.
+
+ * plugins/blackberry/PluginPackageBlackBerry.cpp:
+ (WebCore::PluginPackage::fetchInfo):
+ * plugins/efl/PluginPackageEfl.cpp:
+ (WebCore):
+ (WebCore::PluginPackage::fetchInfo):
+ * plugins/npapi.h:
+ * plugins/npfunctions.h:
+ * plugins/qt/PluginPackageQt.cpp:
+ (WebCore::PluginPackage::fetchInfo):
+
2012-02-01 Timothy Hatcher <timothy@apple.com>
Consolidate duplicate "willHide" functions in DetailedHeapshotView.js to fix
// We are fetching the info. Technically we have not loaded the plugin. PluginView::Init will load the plugin so decrement the counter
m_loadCount--;
- typedef char *(*NPP_GetMIMEDescriptionProcPtr)();
- NPP_GetMIMEDescriptionProcPtr getDescription = (NPP_GetMIMEDescriptionProcPtr) dlsym(m_module, "NP_GetMIMEDescription");
+ NP_GetMIMEDescriptionFuncPtr getDescription = (NP_GetMIMEDescriptionFuncPtr) dlsym(m_module, "NP_GetMIMEDescription");
NPP_GetValueProcPtr getValue = (NPP_GetValueProcPtr) dlsym(m_module, "NP_GetValue");
if (!getDescription || !getValue)
namespace WebCore {
-typedef char* (*NPP_GetMIMEDescriptionProcPtr)();
-
bool PluginPackage::fetchInfo()
{
const char *errmsg;
return false;
NPP_GetValueProcPtr getValue = 0;
- NPP_GetMIMEDescriptionProcPtr getMIMEDescription = 0;
+ NP_GetMIMEDescriptionFuncPtr getMIMEDescription = 0;
getValue = reinterpret_cast<NPP_GetValueProcPtr>(dlsym(m_module, "NP_GetValue"));
if ((errmsg = dlerror())) {
return false;
}
- getMIMEDescription = reinterpret_cast<NPP_GetMIMEDescriptionProcPtr>(dlsym(m_module, "NP_GetMIMEDescription"));
+ getMIMEDescription = reinterpret_cast<NP_GetMIMEDescriptionFuncPtr>(dlsym(m_module, "NP_GetMIMEDescription"));
if ((errmsg = dlerror())) {
EINA_LOG_ERR("Could not get symbol NP_GetMIMEDescription: %s", errmsg);
return false;
/* NPP_* functions are provided by the plugin and called by the navigator. */
#if defined(XP_UNIX)
-char* NPP_GetMIMEDescription(void);
+const char* NPP_GetMIMEDescription(void);
#endif
NPError NP_LOADDS NPP_Initialize(void);
#if defined(XP_UNIX)
typedef EXPORTED_CALLBACK(NPError, NP_InitializeFuncPtr)(NPNetscapeFuncs*, NPPluginFuncs*);
-typedef EXPORTED_CALLBACK(char*, NP_GetMIMEDescriptionFuncPtr)(void);
+typedef EXPORTED_CALLBACK(const char*, NP_GetMIMEDescriptionFuncPtr)(void);
#else
typedef EXPORTED_CALLBACK(NPError, NP_InitializeFuncPtr)(NPNetscapeFuncs*);
#endif
return false;
NPP_GetValueProcPtr gv = (NPP_GetValueProcPtr)m_module->resolve("NP_GetValue");
- typedef char *(*NPP_GetMIMEDescriptionProcPtr)();
- NPP_GetMIMEDescriptionProcPtr gm =
- (NPP_GetMIMEDescriptionProcPtr)m_module->resolve("NP_GetMIMEDescription");
+ NP_GetMIMEDescriptionFuncPtr gm =
+ (NP_GetMIMEDescriptionFuncPtr)m_module->resolve("NP_GetMIMEDescription");
if (!gm || !gv)
return false;