Bug 717753. (Av2) test_focus_browserui.xul: Use "browser.chromeURL" preference to support other browsers than "Firefox" too. r=marco.zehe.
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 14 Jan 2012 00:39:57 +0100
changeset 84398 1a94821b4655a0faffd44e2e63585bdcb721e3d0
parent 84397 790cd9bba7f52fc8c4ef9f16e7c46363216c510e
child 84399 3eaa7d9f1c69542503dce25d3d52bf0a6c4becfd
push id21846
push usersgautherie.bz@free.fr
push dateFri, 13 Jan 2012 23:47:59 +0000
treeherdermozilla-central@1a94821b4655 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarco.zehe
bugs717753
milestone12.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 717753. (Av2) test_focus_browserui.xul: Use "browser.chromeURL" preference to support other browsers than "Firefox" too. r=marco.zehe.
accessible/tests/mochitest/events/test_focus_browserui.xul
--- a/accessible/tests/mochitest/events/test_focus_browserui.xul
+++ b/accessible/tests/mochitest/events/test_focus_browserui.xul
@@ -17,16 +17,18 @@
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
   <![CDATA[
+    Components.utils.import("resource://gre/modules/Services.jsm");
+
     ////////////////////////////////////////////////////////////////////////////
     // Helpers
 
     function tabBrowser()
     {
       return gBrowserWnd.gBrowser;
     }
 
@@ -92,18 +94,18 @@
     // Testing
 
     var gInputDocURI = "data:text/html,<html><input id='input'></html>";
     var gButtonDocURI = "data:text/html,<html><input id='input' type='button' value='button'></html>";
 
     var gBrowserWnd = null;
     function loadBrowser()
     {
-      gBrowserWnd = window.openDialog("chrome://browser/content/", "_blank",
-                                      "chrome,all,dialog=no", gInputDocURI);
+      gBrowserWnd = window.openDialog(Services.prefs.getCharPref("browser.chromeURL"),
+                                      "_blank", "chrome,all,dialog=no", gInputDocURI);
 
       addA11yLoadEvent(startTests, gBrowserWnd);
     }
 
     function startTests()
     {
       // Wait for tab load.
       var browser = gBrowserWnd.gBrowser.selectedBrowser;