Bug 842683: Add #ifdef guard around mac-specific chunk of reftest.js. r=dbaron
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 22 Feb 2013 22:32:30 -0800
changeset 122727 7a332016b950d426a3c3242581d1b50690936ae0
parent 122726 d339d3b173d42b7a23301977c02a2c529890b7cc
child 122728 a4631558de6cdd71d2c4a1c213272444341b7a63
push id23464
push userdholbert@mozilla.com
push dateSat, 23 Feb 2013 06:32:59 +0000
treeherdermozilla-inbound@7a332016b950 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs842683
milestone22.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 842683: Add #ifdef guard around mac-specific chunk of reftest.js. r=dbaron
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -1105,21 +1105,23 @@ function Focus()
     // FIXME/bug 583976: focus doesn't yet work with out-of-process
     // content.
     if (gBrowserIsRemote) {
         return false;
     }
 
     var fm = CC["@mozilla.org/focus-manager;1"].getService(CI.nsIFocusManager);
     fm.focusedWindow = gContainingWindow;
+#ifdef XP_MACOSX
     try {
         var dock = CC["@mozilla.org/widget/macdocksupport;1"].getService(CI.nsIMacDockSupport);
         dock.activateApplication(true);
     } catch(ex) {
     }
+#endif // XP_MACOSX
     return true;
 }
 
 function StartCurrentTest()
 {
     gTestLog = [];
 
     // make sure we don't run tests that are expected to kill the browser