browser_focus_steal_from_chrome.js cleanup
authorDão Gottwald <dao@mozilla.com>
Sun, 13 Dec 2009 21:46:38 +0100
changeset 35683 296f74e81dcab9c8d3b64b6892d5236baa7b6b9b
parent 35682 355d9819adba7ba8dce9cf015a1d9ae42cba70b1
child 35684 0fbd5f6785090492cf757f5284b977f2913ddb83
push id10678
push userdgottwald@mozilla.com
push dateSun, 13 Dec 2009 20:50:06 +0000
treeherdermozilla-central@296f74e81dca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a1pre
browser_focus_steal_from_chrome.js cleanup
dom/tests/browser/browser_focus_steal_from_chrome.js
--- a/dom/tests/browser/browser_focus_steal_from_chrome.js
+++ b/dom/tests/browser/browser_focus_steal_from_chrome.js
@@ -1,16 +1,15 @@
 function test() {
   waitForExplicitFinish();
 
   let fm = Components.classes["@mozilla.org/focus-manager;1"]
                      .getService(Components.interfaces.nsIFocusManager);
 
-  let tabs = [ gBrowser.mCurrentTab, gBrowser.addTab() ];
-  gBrowser.selectedTab = tabs[0];
+  let tabs = [ gBrowser.selectedTab, gBrowser.addTab() ];
 
   let testingList = [
     { uri: "data:text/html,<body onload=\"setTimeout(function () { document.getElementById('target').focus(); }, 10);\"><input id='target'></body>",
       tagName: "INPUT", methodName: "focus" },
     { uri: "data:text/html,<body onload=\"setTimeout(function () { document.getElementById('target').select(); }, 10);\"><input id='target'></body>",
       tagName: "INPUT", methodName: "select" },
     { uri: "data:text/html,<body onload=\"setTimeout(function () { document.getElementById('target').focus(); }, 10);\"><a href='about:blank' id='target'>anchor</a></body>",
       tagName: "A", methodName: "focus" },