Changeset 86456 in webkit
- Timestamp:
- May 13, 2011 12:54:33 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r86451 r86456 1 2011-05-13 Adam Roben <aroben@apple.com> 2 3 Load plugins in the order they're found 4 5 Fixes <http://webkit.org/b/60788> <rdar://problem/9435787> REGRESSION (r69790): WebKit2 6 doesn't prefer plugins in the additional plugins directory 7 8 Reviewed by Anders Carlsson. 9 10 * UIProcess/Plugins/PluginInfoStore.cpp: 11 (WebKit::addFromVector): 12 Changed to use a ListHashSet instead of a HashSet to store the plugin paths. 13 1 14 2011-05-13 Sam Weinig <sam@webkit.org> 2 15 -
trunk/Source/WebKit2/UIProcess/Plugins/PluginInfoStore.cpp
r85983 r86456 30 30 #include <WebCore/MIMETypeRegistry.h> 31 31 #include <algorithm> 32 #include <wtf/ListHashSet.h> 32 33 #include <wtf/StdLibExtras.h> 33 34 … … 53 54 } 54 55 55 template <typename T, typename U , typename V, typename W>56 static void addFromVector( HashSet<T, U, V>& hashSet, const W& vector)56 template <typename T, typename U> 57 static void addFromVector(T& hashSet, const U& vector) 57 58 { 58 59 for (size_t i = 0; i < vector.size(); ++i) … … 60 61 } 61 62 63 // We use a ListHashSet so that plugins will be loaded from the additional plugins directories first 64 // (which in turn means those plugins will be preferred if two plugins claim the same MIME type). 62 65 #if OS(WINDOWS) 63 typedef HashSet<String, CaseFoldingHash> PathHashSet;66 typedef ListHashSet<String, 32, CaseFoldingHash> PathHashSet; 64 67 #else 65 typedef HashSet<String> PathHashSet;68 typedef ListHashSet<String, 32> PathHashSet; 66 69 #endif 67 70
Note: See TracChangeset
for help on using the changeset viewer.