This limits events to only an iframes with in the hidden window, which is fine for page-worker, but then it should be a different module. Either move it to `page-worker/events` or make sure to really cover all content events. For example you could use my implementation
https://github.com/mozilla/addon-sdk/pull/949/files#diff-0 that covers everything.