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

Please use `bind()`