Bug 963582 - Backing out part of bug 962547 to fix the trustedUI display tied to a transitionend.