Item12952: bring back onbeforeunload handler for navigation feedback