This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Otherwise any API that takes a Window or EventTarget argument and operates on it without a security check is a security hole. It's simpler to just do the security check in the IDL layer, imo.