Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6113 closed bug (fixed)

beforeunload event fires twice

Reported by: SidneySM Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: beforeunload, onbeforeunload, event, bind, special Cc:
Blocked by: Blocking:

Description

beforeunload event handlers on window are firing twice: once for onbeforeunload assigned in the event's setup, once for addEventListener.

It's also worth noting that WebKit does now support a return value from beforeunload bound with addEventListener.

Attachments (1)

beforeunload.html (362 bytes) - added by SidneySM 10 years ago.
Testcase

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by SidneySM

Attachment: beforeunload.html added

Testcase

comment:1 Changed 10 years ago by john

Milestone: 1.4.21.4.3
Resolution: fixed
Status: newclosed
Version: 1.4.11.4.2
Note: See TracTickets for help on using tickets.