Backout changeset 37c5482971b1 (bug 583976) because of Android R2 test failures

This commit is contained in:
Ehsan Akhgari 2011-10-03 23:40:34 -04:00
parent ce9fd81cfc
commit e3be9ffdb6

View File

@ -876,6 +876,12 @@ function ServeFiles(manifestURL, depth, aURL, files)
// Return true iff this window is focused when this function returns.
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.activeWindow = window;
try {