Bug 717512 - Use focusedWindow instead of activeWindow when requesting focus for needs-focus tests. r=ehsan

This commit is contained in:
Josh Matthews 2012-01-12 14:49:52 -05:00
parent a9cd912141
commit 20e510e802

View File

@ -985,7 +985,7 @@ function Focus()
}
var fm = CC["@mozilla.org/focus-manager;1"].getService(CI.nsIFocusManager);
fm.activeWindow = gContainingWindow;
fm.focusedWindow = gContainingWindow;
try {
var dock = CC["@mozilla.org/widget/macdocksupport;1"].getService(CI.nsIMacDockSupport);
dock.activateApplication(true);