workable prototype using postMessage
we finally use window.close now !