CustomEvent can't be generated because we still need the XPCOM interface which is used by a11y among others.