summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@digia.com>2013-07-31 14:22:13 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-31 15:12:35 +0200
commit669ed590743b6c456f8b7cedab6d95a0ad845675 (patch)
tree45554b10c67f8df5265f27a5704a1e3dd0919a25
parent7f3515bc7be65e90f5b994a61d36322821703ea1 (diff)
downloadqtwebkit-669ed590743b6c456f8b7cedab6d95a0ad845675.tar.gz
[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 <jocelyn.turcotte@digia.com>
-rw-r--r--Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp2
1 files changed, 0 insertions, 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<WebCo
PluginDatabase* db = PluginDatabase::installedPlugins();
const Vector<PluginPackage*> &plugins = db->plugins();
- outPlugins.resize(plugins.size());
-
for (int i = 0; i < plugins.size(); ++i) {
PluginInfo info;
PluginPackage* package = plugins[i];