When navigating away during session reset, handle an onbeforeunload dialog
(if it occurs) by switching to and accepting it