Bug 911014: Register unload handler even if dialog delay pref is zero; r=unfocused