[Webkit-unassigned] [Bug 20135] New: onbeforeunload doesn't work when set with addEventListener
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 22 14:33:21 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20135
Summary: onbeforeunload doesn't work when set with
addEventListener
Product: WebKit
Version: 526+ (Nightly build)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ovafai at gmail.com
window.addEventListener('beforeunload', function(e) {
(e || window.event).returnValue = "wot?";
return "wot?";
}, true);
This should popup a dialog asking if I want to leave the page when I try to
navigate away. In WebKit, it only seems to do so if I set the handler using
window.onbeforeunload.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list