mozilla-b2g/gaia — pull request #5717 by benadida (2012-10-08 18:34:16+00:00)
Title: set currentOrigin to the origin of the popup, so that close works

this fix is needed to make popups work as expected for the identity implementation (pull request coming for that piece afterwards).