Actually, let's leave it as it is now. The payment confirmation dialog wouldn't be closed via mozChromeEvent, so you were right, it wouldn't use `TrustedUIManager.close()`.