[Webkit-unassigned] [Bug 11559] New: Dialog "Are you sure you want to close this window" is displayed although event onbeforeunload is handled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 10 00:33:46 PST 2006
http://bugs.webkit.org/show_bug.cgi?id=11559
Summary: Dialog "Are you sure you want to close this window" is
displayed although event onbeforeunload is handled
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: mjuhos at kerio.com
Overview Description:
Dialog "Are you sure you want to close this window" is displayed although event
onbeforeunload is handled
Steps to Reproduce:
1) Open test case
2) Click on open window
3) Write some text
4) Close dialog
Actual Results:
WebKit (Safari 3) displays dialog "Are you sure you want to close this window".
When button "Close" is clicked, dialog contains "message" (handles
onbeforeunload event) is displayed.
Expected Results:
First dialog will not be displayed when exist handler for onbeforeunload (or
some possibility switch off displaying of this dialog will exist).
Build Date & Platform:
Build 2006-11-10 on Mac OS 10.5
Additional Information:
Test case:
<html>
<head>
<script>
function wndOpen() {
wnd = window.open("");
wnd.document.body.innerHTML = "<textarea>Write some text
here</textarea>";
wnd.onbeforeunload = function() {return "message";}
}
</script>
</head>
<body>
<button onclick="wndOpen()">Open window</button>
</body>
</html>
--
Configure bugmail: http://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