From 669ed590743b6c456f8b7cedab6d95a0ad845675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Br=C3=BCning?= Date: Wed, 31 Jul 2013 14:22:13 +0200 Subject: [Qt][WK1] navigator.plugins shows too few entries. https://bugs.webkit.org/show_bug.cgi?id=119332 Reviewed by Jocelyn Turcotte. Based on input by Choon Sik Cho. PlatformStrategiesQt::getPluginInfo was using the WTF::Vector::resize method wrongly. This patch removes the call to Vector::resize as Vector::append will take care of increasing capacity if needed. * WebCoreSupport/PlatformStrategiesQt.cpp: (PlatformStrategiesQt::getPluginInfo): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153517 268f45cc-cd09-0410-ab3c-d52691b4dbfc Task-Number: QTBUG-30141 Change-Id: Ic6dd9d6402251d5243e6793dd0d1170c685425d3 Reviewed-by: Jocelyn Turcotte --- Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp b/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp index 07e84606e..01a217449 100644 --- a/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp +++ b/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp @@ -175,8 +175,6 @@ void PlatformStrategiesQt::getPluginInfo(const WebCore::Page* page, Vector &plugins = db->plugins(); - outPlugins.resize(plugins.size()); - for (int i = 0; i < plugins.size(); ++i) { PluginInfo info; PluginPackage* package = plugins[i]; -- cgit v1.2.1