Bug 1021270 - Focus the top active window while permission dialog hide

Isn't these `XXX` refer to `if` in line 277 instead of here?