Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index 8f15d5dca1b483d6973ebf10184248ef5f789e7a..58714d987eee52913baee6d7a180484626ad08b8 100755 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -194,6 +194,12 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
# on ChromeOS). |
self.SetUp() |
+ # Forcibly trigger all plugins to get registered. crbug.com/94123 |
+ # Sometimes flash files loaded too quickly after firing browser |
+ # ends up getting downloaded, which seems to indicate that the plugin |
+ # hasn't been registered yet. |
+ self.GetPluginsInfo() |
+ |
# TODO(dtu): Remove this after crosbug.com/4558 is fixed. |
if self.IsChromeOS(): |
self.WaitUntil(lambda: not self.GetNetworkInfo()['offline_mode']) |