Bug 830358 - Move the TrustedUI logic out of Window Manager