Bug 60788

Summary: REGRESSION (r69790): WebKit2 doesn't prefer plugins in the additional plugins directory
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca
Priority: P2 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Load plugins in the order they're found andersca: review+

Description Adam Roben (:aroben) 2011-05-13 12:43:11 PDT
Prior to r69790, WebKit2 would prefer plugins in the additional plugins directory to any other plugins (if two plugins claim the same MIME type). r69760 broke that by making plugins load in an essentially random order.
Comment 1 Adam Roben (:aroben) 2011-05-13 12:46:43 PDT
Created attachment 93494 [details]
Load plugins in the order they're found
Comment 2 Anders Carlsson 2011-05-13 12:47:39 PDT
Comment on attachment 93494 [details]
Load plugins in the order they're found

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

> Source/WebKit2/UIProcess/Plugins/PluginInfoStore.cpp:67
>  #if OS(WINDOWS)
> -typedef HashSet<String, CaseFoldingHash> PathHashSet;
> +typedef ListHashSet<String, 32, CaseFoldingHash> PathHashSet;
>  #else
> -typedef HashSet<String> PathHashSet;
> +typedef ListHashSet<String, 32> PathHashSet;
>  #endif

Please add a comment here explaining why wer're using a ListHashSet.
Comment 3 Adam Roben (:aroben) 2011-05-13 12:48:01 PDT
<rdar://problem/9435787>
Comment 4 Adam Roben (:aroben) 2011-05-13 12:55:24 PDT
Committed r86456: <http://trac.webkit.org/changeset/86456>