Allow multiple sandboxes in the same environment.

Event handlers need to check that the source of the event is the
targeted iframe.

When accessing the `contentWindow` attribute of an iframe not inserted
in the DOM, IE8 generates an exception (other browsers return null)