[#51172149] Prevent navigation from header in work flow page.

This prevents the user from navigating away on link clicks and searches.
Also, this sends a 'intent_to_close' message to the iframe and waits for a
'allow_close' message before continuing with the navigation.
Formatting.