Bug 77297

Summary: [npapi] NPP_GetMIMEDescription should return const char*
Product: WebKit Reporter: vanuan
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, stuartmorgan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 77200    
Attachments:
Description Flags
patch
ap: review-, ap: commit-queue-
patch_v2
ap: review+, vanuan: commit-queue-
Patch to land none

Description vanuan 2012-01-29 07:41:17 PST
Return type of NPP_GetMIMEDescription was changed from char* to const char*:
http://code.google.com/p/npapi-headers/issues/detail?id=2

So it should also be changed in Webkit.
Comment 1 vanuan 2012-01-29 13:49:07 PST
Created attachment 124469 [details]
patch
Comment 2 vanuan 2012-01-29 14:14:14 PST
Can you review, please?
Comment 3 Stuart Morgan 2012-01-30 01:10:43 PST
I'm not a WebKit reviewer, so no.
Comment 4 Alexey Proskuryakov 2012-01-30 10:11:03 PST
Comment on attachment 124469 [details]
patch

Please also fix references to this in PluginPackage{Qt,Blackberry,Efl}.cpp. They should use NP_GetMIMEDescriptionFuncPtr, not a local typedef.
Comment 5 vanuan 2012-01-30 13:25:22 PST
Created attachment 124587 [details]
patch_v2

See updated patch. However, I'm not sure whether all mentioned ports define XP_UNIX. So build can brake. I didn't check all ports, cause I don't have its dependencies installed.
Comment 6 vanuan 2012-01-31 00:21:52 PST
Comment on attachment 124587 [details]
patch_v2

View in context: https://bugs.webkit.org/attachment.cgi?id=124587&action=review

> Source/WebCore/ChangeLog:11
> +        * plugins/npfunctions.h:

Seems like I forgot to update the changelog
Comment 7 Alexey Proskuryakov 2012-02-01 12:38:09 PST
Comment on attachment 124587 [details]
patch_v2

OK
Comment 8 vanuan 2012-02-01 12:55:02 PST
Created attachment 124997 [details]
Patch to land

Updated changelog. Patch is ready to land.
Comment 9 WebKit Review Bot 2012-02-01 15:11:17 PST
Comment on attachment 124997 [details]
Patch to land

Clearing flags on attachment: 124997

Committed r106503: <http://trac.webkit.org/changeset/106503>
Comment 10 WebKit Review Bot 2012-02-01 15:11:22 PST
All reviewed patches have been landed.  Closing bug.