Filter events coming from child frames.

Most of the time, the listener is only interested in events coming from
the main frame. The only exception is the event to open a new tab when
middle-clicking a link.