Bug 865944 - Use foreground activity instead of process name to determine if remote browser has terminated. r=dminor