Bug 906703 - Trigger "PluginBindingAttached" before tests that use the missing plugin notification. r=jaws, a=test-only
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Mon, 19 Aug 2013 21:19:03 +0200
changeset 148403 bdc6c32b56cbdefdd37a24e84cbe0c4212e822cb
parent 148402 2819dba1a303520c1e59682340035c5707261d95
child 148404 932735322bd0e5d6450890e41d7fb99cea2c310c
push id2787
push userryanvm@gmail.com
push dateWed, 21 Aug 2013 14:43:13 +0000
treeherdermozilla-beta@932735322bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, test-only
bugs906703
milestone24.0
Bug 906703 - Trigger "PluginBindingAttached" before tests that use the missing plugin notification. r=jaws, a=test-only
browser/base/content/test/browser_pluginnotification.js
--- a/browser/base/content/test/browser_pluginnotification.js
+++ b/browser/base/content/test/browser_pluginnotification.js
@@ -67,17 +67,17 @@ function test() {
 
   var plugin = getTestPlugin();
   plugin.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
 
   var newTab = gBrowser.addTab();
   gBrowser.selectedTab = newTab;
   gTestBrowser = gBrowser.selectedBrowser;
   gTestBrowser.addEventListener("load", pageLoad, true);
-  prepareTest(test1, gTestRoot + "plugin_unknown.html");
+  prepareTest(runAfterPluginBindingAttached(test1), gTestRoot + "plugin_unknown.html");
 }
 
 function finishTest() {
   clearAllPluginPermissions();
   gTestBrowser.removeEventListener("load", pageLoad, true);
   gBrowser.removeCurrentTab();
   window.focus();
   finish();