don't let frame-script.js to error
keep the event handlers only in windows frame script, but the content.document.readyState is always uninitialized
there is no window in frame script, just pure addEventListener and removeEventListener