Title: [153517] trunk/Source/WebKit/qt
Revision
153517
Author
michael.brun...@digia.com
Date
2013-07-31 05:12:10 -0700 (Wed, 31 Jul 2013)

Log Message

[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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/ChangeLog (153516 => 153517)


--- trunk/Source/WebKit/qt/ChangeLog	2013-07-31 11:56:06 UTC (rev 153516)
+++ trunk/Source/WebKit/qt/ChangeLog	2013-07-31 12:12:10 UTC (rev 153517)
@@ -1,3 +1,22 @@
+2013-07-31  Michael BrĂ¼ning  <michael.brun...@digia.com>
+
+        [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):
+
 2013-07-31  Deepjyoti Saha  <dees...@cisco.com>
 
         [Qt] Add interface API for origin whitelisting

Modified: trunk/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp (153516 => 153517)


--- trunk/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp	2013-07-31 11:56:06 UTC (rev 153516)
+++ trunk/Source/WebKit/qt/WebCoreSupport/PlatformStrategiesQt.cpp	2013-07-31 12:12:10 UTC (rev 153517)
@@ -169,8 +169,6 @@
     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];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to