Closed Bug 474692 Opened 16 years ago Closed 16 years ago

onbeforeunload fired twice when using Close Window menuitem or Accel+Shift+W

Categories

(Firefox :: Menus, defect, P2)

3.5 Branch
defect

Tracking

()

VERIFIED WORKSFORME
Firefox 3.5

People

(Reporter: mconnor, Assigned: mconnor)

Details

Attachments

(1 file)

We call BrowserTryToCloseWindow twice in this particular case. Not sure how long this has been the case, but doing this twice is a pretty annoying bug if there's a prompt. attachment 339934 [details] works for seeing the problem. Before the fix for bug 456447, you'll get two prompts, then the close all tabs prompt. After, you'll get prompt, all tabs prompt, then prompt again. oops. WIll fix for 3.1 final, this would be really annoying, though on a hopefully-low-use codepath...
Flags: blocking-firefox3.1+
Priority: -- → P2
Whiteboard: [needs patch]
pretty simple...
Attachment #364189 - Flags: review?(gavin.sharp)
I can't reproduce this now, maybe something else was broken. Resolving WFM. Will file a followup on another issue I found.
Status: NEW → RESOLVED
Closed: 16 years ago
Flags: blocking-firefox3.1+
Resolution: --- → WORKSFORME
Attachment #364189 - Flags: review?(gavin.sharp)
Yeah, it's only fired once. Verified.
Status: RESOLVED → VERIFIED
Whiteboard: [needs patch]
Version: unspecified → 3.1 Branch
Target Milestone: Firefox 3.1 → Firefox 3.5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: