Setting an iframe's src in a pagehide handler should not create a frame (nor a crash) On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS subframe.contentWindow is null did not crash PASS successfullyParsed is true TEST COMPLETE