revert 4ad97e19235168f8f1901b49d8dda072f0856817, about Dialog and registerIframe()

It's no longer needed.