[Webkit-unassigned] [Bug 5121] Add support for onbeforeunload event
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Tue Jan 3 17:15:40 PST 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=5121
------- Additional Comments From jhurshman at gmail.com 2006-01-03 17:15 -------
(In reply to comment #1)
> Wouldn't implementing this enable some kinds of evil content, such as uncloseable ads?
As implemented by IE and Firefox, there is unchangeable text displayed before and after the text
specified by the JavaScript programmer.
This text is:
"Are you sure you want to navigate away from this page?"
[custom text here]
"Press OK to continue, or Cancel to stay on the current page."
[OK & Cancel buttons]
Although I'm not too keen on the specific wording of this text, its presence it does mitigate the
possibility of any deception of the user regarding what's happening. In addition, the default button in
both IE and Firefox is "OK" (navigate away).
I don't think it's possible for this event handler to produce uncloseable ads. There is no stopping the
unload if the user clicks OK. If nefarious doings were possible with onbeforeunload, one would think
that this would have become widespread in the 8 years it's been available in IE.
--
Configure bugmail: http://bugzilla.opendarwin.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