Tests whether storedWindowRef === window throws when storedWindowRef points to a cross-origin window.
storedWindowRef === window