Bug 839500; close identity iframe when not in use r=fabrice, r=benadida
(cherry picked from commit 19d99d5882c1571c63e7f2637f0dc8a64cda7099)